var Sc=e=>{throw TypeError(e)};var pa=(e,t,n)=>t.has(e)||Sc("Cannot "+n);var N=(e,t,n)=>(pa(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>t.has(e)?Sc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),z=(e,t,n,r)=>(pa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Se=(e,t,n)=>(pa(e,t,"access private method"),n);var Ci=(e,t,n,r)=>({set _(o){z(e,t,o,n)},get _(){return N(e,t,r)}});function Lg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Tf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jf={exports:{}},Ds={},Rf={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ui=Symbol.for("react.element"),Ig=Symbol.for("react.portal"),Dg=Symbol.for("react.fragment"),Fg=Symbol.for("react.strict_mode"),zg=Symbol.for("react.profiler"),$g=Symbol.for("react.provider"),Bg=Symbol.for("react.context"),Ug=Symbol.for("react.forward_ref"),Vg=Symbol.for("react.suspense"),Hg=Symbol.for("react.memo"),Wg=Symbol.for("react.lazy"),Ec=Symbol.iterator;function Kg(e){return e===null||typeof e!="object"?null:(e=Ec&&e[Ec]||e["@@iterator"],typeof e=="function"?e:null)}var Af={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Of=Object.assign,Mf={};function ro(e,t,n){this.props=e,this.context=t,this.refs=Mf,this.updater=n||Af}ro.prototype.isReactComponent={};ro.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ro.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _f(){}_f.prototype=ro.prototype;function ou(e,t,n){this.props=e,this.context=t,this.refs=Mf,this.updater=n||Af}var iu=ou.prototype=new _f;iu.constructor=ou;Of(iu,ro.prototype);iu.isPureReactComponent=!0;var kc=Array.isArray,Lf=Object.prototype.hasOwnProperty,su={current:null},If={key:!0,ref:!0,__self:!0,__source:!0};function Df(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Lf.call(t,r)&&!If.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,F=P[H];if(0>>1;Ho(he,L))Peo(J,he)?(P[H]=J,P[Pe]=L,H=Pe):(P[H]=he,P[X]=L,H=X);else if(Peo(J,L))P[H]=J,P[Pe]=L,H=Pe;else break e}}return j}function o(P,j){var L=P.sortIndex-j.sortIndex;return L!==0?L:P.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,p=null,g=3,f=!1,C=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=P)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function b(P){if(y=!1,v(P),!C)if(n(l)!==null)C=!0,B(S);else{var j=n(u);j!==null&&V(b,j.startTime-P)}}function S(P,j){C=!1,y&&(y=!1,m(T),T=-1),f=!0;var L=g;try{for(v(j),p=n(l);p!==null&&(!(p.expirationTime>j)||P&&!$());){var H=p.callback;if(typeof H=="function"){p.callback=null,g=p.priorityLevel;var F=H(p.expirationTime<=j);j=e.unstable_now(),typeof F=="function"?p.callback=F:p===n(l)&&r(l),v(j)}else r(l);p=n(l)}if(p!==null)var Q=!0;else{var X=n(u);X!==null&&V(b,X.startTime-j),Q=!1}return Q}finally{p=null,g=L,f=!1}}var E=!1,k=null,T=-1,_=5,O=-1;function $(){return!(e.unstable_now()-O<_)}function D(){if(k!==null){var P=e.unstable_now();O=P;var j=!0;try{j=k(!0,P)}finally{j?K():(E=!1,k=null)}}else E=!1}var K;if(typeof h=="function")K=function(){h(D)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,q=M.port2;M.port1.onmessage=D,K=function(){q.postMessage(null)}}else K=function(){w(D,0)};function B(P){k=P,E||(E=!0,K())}function V(P,j){T=w(function(){P(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){C||f||(C=!0,B(S))},e.unstable_forceFrameRate=function(P){0>P||125H?(P.sortIndex=L,t(u,P),n(l)===null&&P===n(u)&&(y?(m(T),T=-1):y=!0,V(b,L-H))):(P.sortIndex=F,t(l,P),C||f||(C=!0,B(S))),P},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(P){var j=g;return function(){var L=g;g=j;try{return P.apply(this,arguments)}finally{g=L}}}})(Vf);Uf.exports=Vf;var rv=Uf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ov=x,Ye=rv;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qa=Object.prototype.hasOwnProperty,iv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Pc={},Tc={};function sv(e){return Qa.call(Tc,e)?!0:Qa.call(Pc,e)?!1:iv.test(e)?Tc[e]=!0:(Pc[e]=!0,!1)}function av(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lv(e,t,n,r){if(t===null||typeof t>"u"||av(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function De(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new De(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ne[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var lu=/[\-:]([a-z])/g;function uu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lu,uu);Ne[t]=new De(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lu,uu);Ne[t]=new De(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lu,uu);Ne[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function cu(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{ga=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?So(e):""}function uv(e){switch(e.tag){case 5:return So(e.type);case 16:return So("Lazy");case 13:return So("Suspense");case 19:return So("SuspenseList");case 0:case 2:case 15:return e=va(e.type,!1),e;case 11:return e=va(e.type.render,!1),e;case 1:return e=va(e.type,!0),e;default:return""}}function Ya(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wr:return"Fragment";case xr:return"Portal";case Ga:return"Profiler";case du:return"StrictMode";case qa:return"Suspense";case Xa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kf:return(e.displayName||"Context")+".Consumer";case Wf:return(e._context.displayName||"Context")+".Provider";case fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pu:return t=e.displayName||null,t!==null?t:Ya(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return Ya(e(t))}catch{}}return null}function cv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ya(t);case 8:return t===du?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dv(e){var t=Gf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ki(e){e._valueTracker||(e._valueTracker=dv(e))}function qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function as(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Za(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xf(e,t){t=t.checked,t!=null&&cu(e,"checked",t,!1)}function Ja(e,t){Xf(e,t);var n=Rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?el(e,t.type,n):t.hasOwnProperty("defaultValue")&&el(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ac(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function el(e,t,n){(t!=="number"||as(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Eo=Array.isArray;function Ar(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ni.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Po={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fv=["Webkit","ms","Moz","O"];Object.keys(Po).forEach(function(e){fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Po[t]=Po[e]})});function ep(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Po.hasOwnProperty(e)&&Po[e]?(""+t).trim():t+"px"}function tp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ep(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pv=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rl(e,t){if(t){if(pv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function ol(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var il=null;function hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sl=null,Or=null,Mr=null;function _c(e){if(e=fi(e)){if(typeof sl!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Us(t),sl(e.stateNode,e.type,t))}}function np(e){Or?Mr?Mr.push(e):Mr=[e]:Or=e}function rp(){if(Or){var e=Or,t=Mr;if(Mr=Or=null,_c(e),t)for(e=0;e>>=0,e===0?32:31-(Ev(e)/kv|0)|0}var Pi=64,Ti=4194304;function ko(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ds(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=ko(a):(i&=s,i!==0&&(r=ko(i)))}else s=n&~o,s!==0?r=ko(s):i!==0&&(r=ko(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ci(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yt(t),e[t]=n}function jv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=jo),Vc=" ",Hc=!1;function Sp(e,t){switch(e){case"keyup":return ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ep(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var br=!1;function iy(e,t){switch(e){case"compositionend":return Ep(t);case"keypress":return t.which!==32?null:(Hc=!0,Vc);case"textInput":return e=t.data,e===Vc&&Hc?null:e;default:return null}}function sy(e,t){if(br)return e==="compositionend"||!Cu&&Sp(e,t)?(e=bp(),Gi=xu=yn=null,br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gc(n)}}function Tp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){for(var e=window,t=as();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=as(e.document)}return t}function Su(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function my(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tp(n.ownerDocument.documentElement,n)){if(r!==null&&Su(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=qc(n,i);var s=qc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cr=null,fl=null,Ao=null,pl=!1;function Xc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pl||Cr==null||Cr!==as(r)||(r=Cr,"selectionStart"in r&&Su(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ao&&Ho(Ao,r)||(Ao=r,r=hs(fl,"onSelect"),0kr||(e.current=xl[kr],xl[kr]=null,kr--)}function ne(e,t){kr++,xl[kr]=e.current,e.current=t}var An={},Oe=Dn(An),Be=Dn(!1),tr=An;function qr(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ue(e){return e=e.childContextTypes,e!=null}function gs(){ie(Be),ie(Oe)}function rd(e,t,n){if(Oe.current!==An)throw Error(R(168));ne(Oe,t),ne(Be,n)}function Fp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,cv(e)||"Unknown",o));return ce({},n,r)}function vs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,tr=Oe.current,ne(Oe,e),ne(Be,Be.current),!0}function od(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Fp(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,ie(Be),ie(Oe),ne(Oe,e)):ie(Be),ne(Be,n)}var zt=null,Vs=!1,Aa=!1;function zp(e){zt===null?zt=[e]:zt.push(e)}function Py(e){Vs=!0,zp(e)}function Fn(){if(!Aa&&zt!==null){Aa=!0;var e=0,t=ee;try{var n=zt;for(ee=1;e>=s,o-=s,Bt=1<<32-yt(t)+o|n<T?(_=k,k=null):_=k.sibling;var O=g(m,k,v[T],b);if(O===null){k===null&&(k=_);break}e&&k&&O.alternate===null&&t(m,k),h=i(O,h,T),E===null?S=O:E.sibling=O,E=O,k=_}if(T===v.length)return n(m,k),ae&&Un(m,T),S;if(k===null){for(;TT?(_=k,k=null):_=k.sibling;var $=g(m,k,O.value,b);if($===null){k===null&&(k=_);break}e&&k&&$.alternate===null&&t(m,k),h=i($,h,T),E===null?S=$:E.sibling=$,E=$,k=_}if(O.done)return n(m,k),ae&&Un(m,T),S;if(k===null){for(;!O.done;T++,O=v.next())O=p(m,O.value,b),O!==null&&(h=i(O,h,T),E===null?S=O:E.sibling=O,E=O);return ae&&Un(m,T),S}for(k=r(m,k);!O.done;T++,O=v.next())O=f(k,m,T,O.value,b),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?T:O.key),h=i(O,h,T),E===null?S=O:E.sibling=O,E=O);return e&&k.forEach(function(D){return t(m,D)}),ae&&Un(m,T),S}function w(m,h,v,b){if(typeof v=="object"&&v!==null&&v.type===wr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ei:e:{for(var S=v.key,E=h;E!==null;){if(E.key===S){if(S=v.type,S===wr){if(E.tag===7){n(m,E.sibling),h=o(E,v.props.children),h.return=m,m=h;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ln&&ad(S)===E.type){n(m,E.sibling),h=o(E,v.props),h.ref=yo(m,E,v),h.return=m,m=h;break e}n(m,E);break}else t(m,E);E=E.sibling}v.type===wr?(h=er(v.props.children,m.mode,b,v.key),h.return=m,m=h):(b=ns(v.type,v.key,v.props,null,m.mode,b),b.ref=yo(m,h,v),b.return=m,m=b)}return s(m);case xr:e:{for(E=v.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(m,h.sibling),h=o(h,v.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=za(v,m.mode,b),h.return=m,m=h}return s(m);case ln:return E=v._init,w(m,h,E(v._payload),b)}if(Eo(v))return C(m,h,v,b);if(po(v))return y(m,h,v,b);Li(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,v),h.return=m,m=h):(n(m,h),h=Fa(v,m.mode,b),h.return=m,m=h),s(m)):n(m,h)}return w}var Yr=Vp(!0),Hp=Vp(!1),ws=Dn(null),bs=null,Tr=null,Pu=null;function Tu(){Pu=Tr=bs=null}function ju(e){var t=ws.current;ie(ws),e._currentValue=t}function Cl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Lr(e,t){bs=e,Pu=Tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(Pu!==e)if(e={context:e,memoizedValue:t,next:null},Tr===null){if(bs===null)throw Error(R(308));Tr=e,bs.dependencies={lanes:0,firstContext:e}}else Tr=Tr.next=e;return t}var Wn=null;function Ru(e){Wn===null?Wn=[e]:Wn.push(e)}function Wp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ru(t)):(n.next=o.next,o.next=n),t.interleaved=n,Kt(e,r)}function Kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var un=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Kt(e,n)}return o=r.interleaved,o===null?(t.next=t,Ru(r)):(t.next=o.next,o.next=t),r.interleaved=t,Kt(e,n)}function Xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gu(e,n)}}function ld(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cs(e,t,n,r){var o=e.updateQueue;un=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var p=o.baseState;s=0,d=u=l=null,a=i;do{var g=a.lane,f=a.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var C=e,y=a;switch(g=t,f=n,y.tag){case 1:if(C=y.payload,typeof C=="function"){p=C.call(f,p,g);break e}p=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=y.payload,g=typeof C=="function"?C.call(f,p,g):C,g==null)break e;p=ce({},p,g);break e;case 2:un=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[a]:g.push(a))}else f={eventTime:f,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=f,l=p):d=d.next=f,s|=g;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;g=a,a=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);or|=s,e.lanes=s,e.memoizedState=p}}function ud(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ma.transition;Ma.transition={};try{e(!1),t()}finally{ee=n,Ma.transition=r}}function uh(){return at().memoizedState}function Ay(e,t,n){var r=Pn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ch(e))dh(t,n);else if(n=Wp(e,t,n,r),n!==null){var o=Le();xt(n,e,r,o),fh(n,t,r)}}function Oy(e,t,n){var r=Pn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ch(e))dh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,wt(a,s)){var l=t.interleaved;l===null?(o.next=o,Ru(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Wp(e,t,o,r),n!==null&&(o=Le(),xt(n,e,r,o),fh(n,t,r))}}function ch(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function dh(e,t){Oo=Es=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gu(e,n)}}var ks={readContext:st,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},My={readContext:st,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:dd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zi(4194308,4,oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zi(4,2,e,t)},useMemo:function(e,t){var n=kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ay.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:cd,useDebugValue:zu,useDeferredValue:function(e){return kt().memoizedState=e},useTransition:function(){var e=cd(!1),t=e[0];return e=Ry.bind(null,e[1]),kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=kt();if(ae){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ce===null)throw Error(R(349));rr&30||Xp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,dd(Zp.bind(null,r,i,e),[e]),r.flags|=2048,Zo(9,Yp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=kt(),t=Ce.identifierPrefix;if(ae){var n=Ut,r=Bt;n=(r&~(1<<32-yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[jt]=t,e[Qo]=r,Ch(e,t,!1,!1),t.stateNode=e;e:{switch(s=ol(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oeo&&(t.flags|=128,r=!0,xo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ss(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ae)return je(t),null}else 2*pe()-i.renderingStartTime>eo&&n!==1073741824&&(t.flags|=128,r=!0,xo(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,ne(le,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Wu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function By(e,t){switch(ku(t),t.tag){case 1:return Ue(t.type)&&gs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zr(),ie(Be),ie(Oe),_u(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mu(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return Zr(),null;case 10:return ju(t.type._context),null;case 22:case 23:return Wu(),null;case 24:return null;default:return null}}var Di=!1,Ae=!1,Uy=typeof WeakSet=="function"?WeakSet:Set,I=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Al(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Cd=!1;function Vy(e,t){if(hl=fs,e=jp(),Su(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,p=e,g=null;t:for(;;){for(var f;p!==n||o!==0&&p.nodeType!==3||(a=s+o),p!==i||r!==0&&p.nodeType!==3||(l=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(f=p.firstChild)!==null;)g=p,p=f;for(;;){if(p===e)break t;if(g===n&&++u===o&&(a=s),g===i&&++d===r&&(l=s),(f=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ml={focusedElem:e,selectionRange:n},fs=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var y=C.memoizedProps,w=C.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:pt(t.type,y),w);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(b){fe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return C=Cd,Cd=!1,C}function Mo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Al(t,n,i)}o=o.next}while(o!==r)}}function Ks(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ol(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kh(e){var t=e.alternate;t!==null&&(e.alternate=null,kh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Qo],delete t[yl],delete t[ky],delete t[Ny])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nh(e){return e.tag===5||e.tag===3||e.tag===4}function Sd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ml(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ms));else if(r!==4&&(e=e.child,e!==null))for(Ml(e,t,n),e=e.sibling;e!==null;)Ml(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_l(e,t,n),e=e.sibling;e!==null;)_l(e,t,n),e=e.sibling}var Ee=null,gt=!1;function rn(e,t,n){for(n=n.child;n!==null;)Ph(e,t,n),n=n.sibling}function Ph(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Fs,n)}catch{}switch(n.tag){case 5:Ae||jr(n,t);case 6:var r=Ee,o=gt;Ee=null,rn(e,t,n),Ee=r,gt=o,Ee!==null&&(gt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(gt?(e=Ee,n=n.stateNode,e.nodeType===8?Ra(e.parentNode,n):e.nodeType===1&&Ra(e,n),Uo(e)):Ra(Ee,n.stateNode));break;case 4:r=Ee,o=gt,Ee=n.stateNode.containerInfo,gt=!0,rn(e,t,n),Ee=r,gt=o;break;case 0:case 11:case 14:case 15:if(!Ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Al(n,t,s),o=o.next}while(o!==r)}rn(e,t,n);break;case 1:if(!Ae&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){fe(n,t,a)}rn(e,t,n);break;case 21:rn(e,t,n);break;case 22:n.mode&1?(Ae=(r=Ae)||n.memoizedState!==null,rn(e,t,n),Ae=r):rn(e,t,n);break;default:rn(e,t,n)}}function Ed(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Uy),t.forEach(function(r){var o=Zy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wy(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,Ts=0,Z&6)throw Error(R(331));var o=Z;for(Z|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lpe()-Vu?Jn(e,0):Uu|=n),Ve(e,t)}function Lh(e,t){t===0&&(e.mode&1?(t=Ti,Ti<<=1,!(Ti&130023424)&&(Ti=4194304)):t=1);var n=Le();e=Kt(e,t),e!==null&&(ci(e,t,n),Ve(e,n))}function Yy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lh(e,n)}function Zy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Lh(e,n)}var Ih;Ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,zy(e,t,n);$e=!!(e.flags&131072)}else $e=!1,ae&&t.flags&1048576&&$p(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ji(e,t),e=t.pendingProps;var o=qr(t,Oe.current);Lr(t,n),o=Iu(null,t,r,e,o,n);var i=Du();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(i=!0,vs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Au(t),o.updater=Ws,t.stateNode=o,o._reactInternals=t,El(t,r,e,n),t=Pl(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&Eu(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ji(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ex(r),e=pt(r,e),o){case 0:t=Nl(null,t,r,e,n);break e;case 1:t=xd(null,t,r,e,n);break e;case 11:t=vd(null,t,r,e,n);break e;case 14:t=yd(null,t,r,pt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Nl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),xd(e,t,r,o,n);case 3:e:{if(xh(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Kp(e,t),Cs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Jr(Error(R(423)),t),t=wd(e,t,r,n,o);break e}else if(r!==o){o=Jr(Error(R(424)),t),t=wd(e,t,r,n,o);break e}else for(Ge=En(t.stateNode.containerInfo.firstChild),qe=t,ae=!0,vt=null,n=Hp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xr(),r===o){t=Qt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Qp(t),e===null&&bl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,gl(r,o)?s=null:i!==null&&gl(r,i)&&(t.flags|=32),yh(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&bl(t),null;case 13:return wh(e,t,n);case 4:return Ou(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),vd(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(ws,r._currentValue),r._currentValue=s,i!==null)if(wt(i.value,s)){if(i.children===o.children&&!Be.current){t=Qt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Vt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Cl(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Cl(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lr(t,n),o=st(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=pt(r,t.pendingProps),o=pt(r.type,o),yd(e,t,r,o,n);case 15:return gh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Ji(e,t),t.tag=1,Ue(r)?(e=!0,vs(t)):e=!1,Lr(t,n),ph(t,r,o),El(t,r,o,n),Pl(null,t,r,!0,e,n);case 19:return bh(e,t,n);case 22:return vh(e,t,n)}throw Error(R(156,t.tag))};function Dh(e,t){return cp(e,t)}function Jy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ot(e,t,n,r){return new Jy(e,t,n,r)}function Qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ex(e){if(typeof e=="function")return Qu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fu)return 11;if(e===pu)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=ot(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ns(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Qu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wr:return er(n.children,o,i,t);case du:s=8,o|=8;break;case Ga:return e=ot(12,n,t,o|2),e.elementType=Ga,e.lanes=i,e;case qa:return e=ot(13,n,t,o),e.elementType=qa,e.lanes=i,e;case Xa:return e=ot(19,n,t,o),e.elementType=Xa,e.lanes=i,e;case Qf:return Gs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wf:s=10;break e;case Kf:s=9;break e;case fu:s=11;break e;case pu:s=14;break e;case ln:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=ot(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function er(e,t,n,r){return e=ot(7,e,r,t),e.lanes=n,e}function Gs(e,t,n,r){return e=ot(22,e,r,t),e.elementType=Qf,e.lanes=n,e.stateNode={isHidden:!1},e}function Fa(e,t,n){return e=ot(6,e,null,t),e.lanes=n,e}function za(e,t,n){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tx(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xa(0),this.expirationTimes=xa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gu(e,t,n,r,o,i,s,a,l){return e=new tx(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Au(i),e}function nx(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bh)}catch(e){console.error(e)}}Bh(),Bf.exports=Ze;var hi=Bf.exports;const Uh=Tf(hi);var Vh,Od=hi;Vh=Od.createRoot,Od.hydrateRoot;const ax=1,lx=1e6;let $a=0;function ux(){return $a=($a+1)%Number.MAX_SAFE_INTEGER,$a.toString()}const Ba=new Map,Md=e=>{if(Ba.has(e))return;const t=setTimeout(()=>{Ba.delete(e),Io({type:"REMOVE_TOAST",toastId:e})},lx);Ba.set(e,t)},cx=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ax)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Md(n):e.toasts.forEach(r=>{Md(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},rs=[];let os={toasts:[]};function Io(e){os=cx(os,e),rs.forEach(t=>{t(os)})}function dx({...e}){const t=ux(),n=o=>Io({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Io({type:"DISMISS_TOAST",toastId:t});return Io({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function fx(){const[e,t]=x.useState(os);return x.useEffect(()=>(rs.push(t),()=>{const n=rs.indexOf(t);n>-1&&rs.splice(n,1)}),[e]),{...e,toast:dx,dismiss:n=>Io({type:"DISMISS_TOAST",toastId:n})}}function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function _d(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Hh(...e){return t=>{let n=!1;const r=e.map(o=>{const i=_d(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var m;const{scope:g,children:f,...C}=p,y=((m=g==null?void 0:g[e])==null?void 0:m[l])||a,w=x.useMemo(()=>C,Object.values(C));return c.jsx(y.Provider,{value:w,children:f})};u.displayName=i+"Provider";function d(p,g){var y;const f=((y=g==null?void 0:g[e])==null?void 0:y[l])||a,C=x.useContext(f);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>x.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,px(o,...t)]}function px(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function zl(e){const t=hx(e),n=x.forwardRef((r,o)=>{const{children:i,...s}=r,a=x.Children.toArray(i),l=a.find(gx);if(l){const u=l.props.children,d=a.map(p=>p===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return c.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function hx(e){const t=x.forwardRef((n,r)=>{const{children:o,...i}=n;if(x.isValidElement(o)){const s=yx(o),a=vx(i,o.props);return o.type!==x.Fragment&&(a.ref=r?Hh(r,s):s),x.cloneElement(o,a)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wh=Symbol("radix.slottable");function mx(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Wh,t}function gx(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wh}function vx(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function yx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function xx(e){const t=e+"CollectionProvider",[n,r]=Js(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:w,children:m}=y,h=A.useRef(null),v=A.useRef(new Map).current;return c.jsx(o,{scope:w,itemMap:v,collectionRef:h,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=zl(a),u=A.forwardRef((y,w)=>{const{scope:m,children:h}=y,v=i(a,m),b=bt(w,v.collectionRef);return c.jsx(l,{ref:b,children:h})});u.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",g=zl(d),f=A.forwardRef((y,w)=>{const{scope:m,children:h,...v}=y,b=A.useRef(null),S=bt(w,b),E=i(d,m);return A.useEffect(()=>(E.itemMap.set(b,{ref:b,...v}),()=>void E.itemMap.delete(b))),c.jsx(g,{[p]:"",ref:S,children:h})});f.displayName=d;function C(y){const w=i(e+"CollectionConsumer",y);return A.useCallback(()=>{const h=w.collectionRef.current;if(!h)return[];const v=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((E,k)=>v.indexOf(E.ref.current)-v.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:f},C,r]}var wx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=wx.reduce((e,t)=>{const n=zl(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Kh(e,t){e&&hi.flushSync(()=>e.dispatchEvent(t))}function On(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function bx(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Cx="DismissableLayer",$l="dismissableLayer.update",Sx="dismissableLayer.pointerDownOutside",Ex="dismissableLayer.focusOutside",Ld,Qh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zu=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=x.useContext(Qh),[d,p]=x.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),C=bt(t,k=>p(k)),y=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(w),h=d?y.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,b=h>=m,S=Nx(k=>{const T=k.target,_=[...u.branches].some(O=>O.contains(T));!b||_||(o==null||o(k),s==null||s(k),k.defaultPrevented||a==null||a())},g),E=Px(k=>{const T=k.target;[...u.branches].some(O=>O.contains(T))||(i==null||i(k),s==null||s(k),k.defaultPrevented||a==null||a())},g);return bx(k=>{h===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},g),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ld=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Id(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ld)}},[d,g,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Id())},[d,u]),x.useEffect(()=>{const k=()=>f({});return document.addEventListener($l,k),()=>document.removeEventListener($l,k)},[]),c.jsx(He.div,{...l,ref:C,style:{pointerEvents:v?b?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,S.onPointerDownCapture)})});Zu.displayName=Cx;var kx="DismissableLayerBranch",Gh=x.forwardRef((e,t)=>{const n=x.useContext(Qh),r=x.useRef(null),o=bt(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),c.jsx(He.div,{...e,ref:o})});Gh.displayName=kx;function Nx(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){qh(Sx,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Px(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1);return x.useEffect(()=>{const o=i=>{i.target&&!r.current&&qh(Ex,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Id(){const e=new CustomEvent($l);document.dispatchEvent(e)}function qh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kh(o,i):o.dispatchEvent(i)}var Tx=Zu,jx=Gh,Mn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Rx="Portal",Xh=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=x.useState(!1);Mn(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Uh.createPortal(c.jsx(He.div,{...r,ref:t}),s):null});Xh.displayName=Rx;function Ax(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Ju=e=>{const{present:t,children:n}=e,r=Ox(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=bt(r.ref,Mx(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null};Ju.displayName="Presence";function Ox(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),i=x.useRef("none"),s=e?"mounted":"unmounted",[a,l]=Ax(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=$i(r.current);i.current=a==="mounted"?u:"none"},[a]),Mn(()=>{const u=r.current,d=o.current;if(d!==e){const g=i.current,f=$i(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&g!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Mn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=f=>{const y=$i(r.current).includes(f.animationName);if(f.target===t&&y&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=f=>{f.target===t&&(i.current=$i(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function $i(e){return(e==null?void 0:e.animationName)||"none"}function Mx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _x=zf[" useInsertionEffect ".trim().toString()]||Mn;function Lx({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Ix({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=x.useCallback(d=>{var p;if(a){const g=Dx(d)?d(e):d;g!==e&&((p=s.current)==null||p.call(s,g))}else i(d)},[a,e,i,s]);return[l,u]}function Ix({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return _x(()=>{i.current=t},[t]),x.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Dx(e){return typeof e=="function"}var Fx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),zx="VisuallyHidden",ea=x.forwardRef((e,t)=>c.jsx(He.span,{...e,ref:t,style:{...Fx,...e.style}}));ea.displayName=zx;var $x=ea,ec="ToastProvider",[tc,Bx,Ux]=xx("Toast"),[Yh,dS]=Js("Toast",[Ux]),[Vx,ta]=Yh(ec),Zh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=x.useState(null),[u,d]=x.useState(0),p=x.useRef(!1),g=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ec}\`. Expected non-empty \`string\`.`),c.jsx(tc.Provider,{scope:t,children:c.jsx(Vx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>d(f=>f+1),[]),onToastRemove:x.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:s})})};Zh.displayName=ec;var Jh="ToastViewport",Hx=["F8"],Bl="toast.viewportPause",Ul="toast.viewportResume",em=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Hx,label:o="Notifications ({hotkey})",...i}=e,s=ta(Jh,n),a=Bx(n),l=x.useRef(null),u=x.useRef(null),d=x.useRef(null),p=x.useRef(null),g=bt(t,p,s.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=s.toastCount>0;x.useEffect(()=>{const w=m=>{var v;r.length!==0&&r.every(b=>m[b]||m.code===b)&&((v=p.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=l.current,m=p.current;if(C&&w&&m){const h=()=>{if(!s.isClosePausedRef.current){const E=new CustomEvent(Bl);m.dispatchEvent(E),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const E=new CustomEvent(Ul);m.dispatchEvent(E),s.isClosePausedRef.current=!1}},b=E=>{!w.contains(E.relatedTarget)&&v()},S=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",h),w.addEventListener("focusout",b),w.addEventListener("pointermove",h),w.addEventListener("pointerleave",S),window.addEventListener("blur",h),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",h),w.removeEventListener("focusout",b),w.removeEventListener("pointermove",h),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",h),window.removeEventListener("focus",v)}}},[C,s.isClosePausedRef]);const y=x.useCallback(({tabbingDirection:w})=>{const h=a().map(v=>{const b=v.ref.current,S=[b,...r0(b)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?h.reverse():h).flat()},[a]);return x.useEffect(()=>{const w=p.current;if(w){const m=h=>{var S,E,k;const v=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!v){const T=document.activeElement,_=h.shiftKey;if(h.target===w&&_){(S=u.current)==null||S.focus();return}const D=y({tabbingDirection:_?"backwards":"forwards"}),K=D.findIndex(M=>M===T);Ua(D.slice(K+1))?h.preventDefault():_?(E=u.current)==null||E.focus():(k=d.current)==null||k.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[a,y]),c.jsxs(jx,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&c.jsx(Vl,{ref:u,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});Ua(w)}}),c.jsx(tc.Slot,{scope:n,children:c.jsx(He.ol,{tabIndex:-1,...i,ref:g})}),C&&c.jsx(Vl,{ref:d,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});Ua(w)}})]})});em.displayName=Jh;var tm="ToastFocusProxy",Vl=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=ta(tm,n);return c.jsx(ea,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Vl.displayName=tm;var mi="Toast",Wx="toast.swipeStart",Kx="toast.swipeMove",Qx="toast.swipeCancel",Gx="toast.swipeEnd",nm=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=Lx({prop:r,defaultProp:o??!0,onChange:i,caller:mi});return c.jsx(Ju,{present:n||a,children:c.jsx(Yx,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ye(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});nm.displayName=mi;var[qx,Xx]=Yh(mi,{onClose(){}}),Yx=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:f,...C}=e,y=ta(mi,n),[w,m]=x.useState(null),h=bt(t,M=>m(M)),v=x.useRef(null),b=x.useRef(null),S=o||y.duration,E=x.useRef(0),k=x.useRef(S),T=x.useRef(0),{onToastAdd:_,onToastRemove:O}=y,$=On(()=>{var q;(w==null?void 0:w.contains(document.activeElement))&&((q=y.viewport)==null||q.focus()),s()}),D=x.useCallback(M=>{!M||M===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout($,M))},[$]);x.useEffect(()=>{const M=y.viewport;if(M){const q=()=>{D(k.current),u==null||u()},B=()=>{const V=new Date().getTime()-E.current;k.current=k.current-V,window.clearTimeout(T.current),l==null||l()};return M.addEventListener(Bl,B),M.addEventListener(Ul,q),()=>{M.removeEventListener(Bl,B),M.removeEventListener(Ul,q)}}},[y.viewport,S,l,u,D]),x.useEffect(()=>{i&&!y.isClosePausedRef.current&&D(S)},[i,S,y.isClosePausedRef,D]),x.useEffect(()=>(_(),()=>O()),[_,O]);const K=x.useMemo(()=>w?um(w):null,[w]);return y.viewport?c.jsxs(c.Fragment,{children:[K&&c.jsx(Zx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),c.jsx(qx,{scope:n,onClose:$,children:hi.createPortal(c.jsx(tc.ItemSlot,{scope:n,children:c.jsx(Tx,{asChild:!0,onEscapeKeyDown:ye(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||$(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(He.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...C,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ye(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:ye(e.onPointerMove,M=>{if(!v.current)return;const q=M.clientX-v.current.x,B=M.clientY-v.current.y,V=!!b.current,P=["left","right"].includes(y.swipeDirection),j=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=P?j(0,q):0,H=P?0:j(0,B),F=M.pointerType==="touch"?10:2,Q={x:L,y:H},X={originalEvent:M,delta:Q};V?(b.current=Q,Bi(Kx,p,X,{discrete:!1})):Dd(Q,y.swipeDirection,F)?(b.current=Q,Bi(Wx,d,X,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(q)>F||Math.abs(B)>F)&&(v.current=null)}),onPointerUp:ye(e.onPointerUp,M=>{const q=b.current,B=M.target;if(B.hasPointerCapture(M.pointerId)&&B.releasePointerCapture(M.pointerId),b.current=null,v.current=null,q){const V=M.currentTarget,P={originalEvent:M,delta:q};Dd(q,y.swipeDirection,y.swipeThreshold)?Bi(Gx,f,P,{discrete:!0}):Bi(Qx,g,P,{discrete:!0}),V.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),Zx=e=>{const{__scopeToast:t,children:n,...r}=e,o=ta(mi,t),[i,s]=x.useState(!1),[a,l]=x.useState(!1);return t0(()=>s(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Xh,{asChild:!0,children:c.jsx(ea,{...r,children:i&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},Jx="ToastTitle",rm=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});rm.displayName=Jx;var e0="ToastDescription",om=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});om.displayName=e0;var im="ToastAction",sm=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(lm,{altText:n,asChild:!0,children:c.jsx(nc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${im}\`. Expected non-empty \`string\`.`),null)});sm.displayName=im;var am="ToastClose",nc=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Xx(am,n);return c.jsx(lm,{asChild:!0,children:c.jsx(He.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});nc.displayName=am;var lm=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function um(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),n0(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...um(r))}}),t}function Bi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kh(o,i):o.dispatchEvent(i)}var Dd=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function t0(e=()=>{}){const t=On(e);Mn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function n0(e){return e.nodeType===e.ELEMENT_NODE}function r0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ua(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var o0=Zh,cm=em,dm=nm,fm=rm,pm=om,hm=sm,mm=nc;function gm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,zd=vm,i0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return zd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=i==null?void 0:i[u];if(d===null)return null;const g=Fd(d)||Fd(p);return o[u][g]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,g]=d;return g===void 0||(u[p]=g),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:g,...f}=d;return Object.entries(f).every(C=>{let[y,w]=C;return Array.isArray(w)?w.includes({...i,...a}[y]):{...i,...a}[y]===w})?[...u,p,g]:u},[]);return zd(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ym=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var a0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const l0=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>x.createElement("svg",{ref:l,...a0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ym("lucide",o),...a},[...s.map(([u,d])=>x.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xm=(e,t)=>{const n=x.forwardRef(({className:r,...o},i)=>x.createElement(l0,{ref:i,iconNode:t,className:ym(`lucide-${s0(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const u0=xm("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const c0=xm("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rc="-",d0=e=>{const t=p0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(rc);return a[0]===""&&a.length!==1&&a.shift(),wm(a,t)||f0(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},wm=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?wm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(rc);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},$d=/^\[(.+)\]$/,f0=e=>{if($d.test(e)){const t=$d.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},p0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return m0(Object.entries(e.classGroups),n).forEach(([i,s])=>{Hl(s,r,i,t)}),r},Hl=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Bd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(h0(o)){Hl(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Hl(s,Bd(t,i),n,r)})})},Bd=(e,t)=>{let n=e;return t.split(rc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},h0=e=>e.isThemeGetter,m0=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,g0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},bm="!",v0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,d=0,p;for(let w=0;wd?p-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:C,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:s}):s},y0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},x0=e=>({cache:g0(e.cacheSize),parseClassName:v0(e),...d0(e)}),w0=/\s+/,b0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(w0);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=n(u);let C=!!f,y=r(C?g.substring(0,f):g);if(!y){if(!C){a=u+(a.length>0?" "+a:a);continue}if(y=r(g),!y){a=u+(a.length>0?" "+a:a);continue}C=!1}const w=y0(d).join(":"),m=p?w+bm:w,h=m+y;if(i.includes(h))continue;i.push(h);const v=o(y,C);for(let b=0;b0?" "+a:a)}return a};function C0(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(d),e());return n=x0(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=b0(l,n);return o(l,d),d}return function(){return i(C0.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Sm=/^\[(?:([a-z-]+):)?(.+)\]$/i,E0=/^\d+\/\d+$/,k0=new Set(["px","full","screen"]),N0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,T0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,j0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>Dr(e)||k0.has(e)||E0.test(e),on=e=>so(e,"length",F0),Dr=e=>!!e&&!Number.isNaN(Number(e)),Va=e=>so(e,"number",Dr),bo=e=>!!e&&Number.isInteger(Number(e)),A0=e=>e.endsWith("%")&&Dr(e.slice(0,-1)),W=e=>Sm.test(e),sn=e=>N0.test(e),O0=new Set(["length","size","percentage"]),M0=e=>so(e,O0,Em),_0=e=>so(e,"position",Em),L0=new Set(["image","url"]),I0=e=>so(e,L0,$0),D0=e=>so(e,"",z0),Co=()=>!0,so=(e,t,n)=>{const r=Sm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},F0=e=>P0.test(e)&&!T0.test(e),Em=()=>!1,z0=e=>j0.test(e),$0=e=>R0.test(e),B0=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),a=re("borderWidth"),l=re("contrast"),u=re("grayscale"),d=re("hueRotate"),p=re("invert"),g=re("gap"),f=re("gradientColorStops"),C=re("gradientColorStopPositions"),y=re("inset"),w=re("margin"),m=re("opacity"),h=re("padding"),v=re("saturate"),b=re("scale"),S=re("sepia"),E=re("skew"),k=re("space"),T=re("translate"),_=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",W,t],D=()=>[W,t],K=()=>["",It,on],M=()=>["auto",Dr,W],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",W],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Dr,W];return{cacheSize:500,separator:":",theme:{colors:[Co],spacing:[It,on],blur:["none","",sn,W],brightness:H(),borderColor:[e],borderRadius:["none","","full",sn,W],borderSpacing:D(),borderWidth:K(),contrast:H(),grayscale:j(),hueRotate:H(),invert:j(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[A0,on],inset:$(),margin:$(),opacity:H(),padding:D(),saturate:H(),scale:H(),sepia:j(),skew:H(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[sn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),W]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bo,W]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",bo,W]}],"grid-cols":[{"grid-cols":[Co]}],"col-start-end":[{col:["auto",{span:["full",bo,W]},W]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Co]}],"row-start-end":[{row:["auto",{span:[bo,W]},W]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[sn]},sn]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",sn,on]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Va]}],"font-family":[{font:[Co]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Dr,Va]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",It,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",It,on]}],"underline-offset":[{"underline-offset":["auto",It,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),_0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",M0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},I0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[It,W]}],"outline-w":[{outline:[It,on]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[It,on]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",sn,D0]}],"shadow-color":[{shadow:[Co]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",sn,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[bo,W]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[It,on,Va]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},U0=S0(B0);function ur(...e){return U0(vm(e))}const V0=o0,km=x.forwardRef(({className:e,...t},n)=>c.jsx(cm,{ref:n,className:ur("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));km.displayName=cm.displayName;const H0=i0("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Nm=x.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(dm,{ref:r,className:ur(H0({variant:t}),e),...n}));Nm.displayName=dm.displayName;const W0=x.forwardRef(({className:e,...t},n)=>c.jsx(hm,{ref:n,className:ur("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));W0.displayName=hm.displayName;const Pm=x.forwardRef(({className:e,...t},n)=>c.jsx(mm,{ref:n,className:ur("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(c0,{className:"h-4 w-4"})}));Pm.displayName=mm.displayName;const Tm=x.forwardRef(({className:e,...t},n)=>c.jsx(fm,{ref:n,className:ur("text-sm font-semibold",e),...t}));Tm.displayName=fm.displayName;const jm=x.forwardRef(({className:e,...t},n)=>c.jsx(pm,{ref:n,className:ur("text-sm opacity-90",e),...t}));jm.displayName=pm.displayName;function K0(){const{toasts:e}=fx();return c.jsxs(V0,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return c.jsxs(Nm,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Tm,{children:n}),r&&c.jsx(jm,{children:r})]}),o,c.jsx(Pm,{})]},t)}),c.jsx(km,{})]})}var Ud=["light","dark"],Q0="(prefers-color-scheme: dark)",G0=x.createContext(void 0),q0={setTheme:e=>{},themes:[]},X0=()=>{var e;return(e=x.useContext(G0))!=null?e:q0};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(C=>`'${C}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?Ud.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(C,y=!1,w=!0)=>{let m=s?s[C]:C,h=y?C+"|| ''":`'${m}'`,v="";return o&&w&&!y&&Ud.includes(C)&&(v+=`d.style.colorScheme = '${C}';`),n==="class"?y||m?v+=`c.add(${h})`:v+="null":m&&(v+=`d[s](n,${h})`),v},f=e?`!function(){${d}${g(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Q0}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${g(s?"x[e]":"e",!0)}}${u?"":"else{"+g(i,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${g(s?"x[e]":"e",!0)}}else{${g(i,!1,!1)};}${p}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var Y0=e=>{switch(e){case"success":return ew;case"info":return nw;case"warning":return tw;case"error":return rw;default:return null}},Z0=Array(12).fill(0),J0=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},Z0.map((n,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),ew=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),tw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),nw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),rw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ow=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),iw=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Wl=1,sw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Wl++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async l=>{if(i=["resolve",l],A.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(lw(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>s.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Wl++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Fe=new sw,aw=(e,t)=>{let n=(t==null?void 0:t.id)||Wl++;return Fe.addToast({title:e,...t,id:n}),n},lw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",uw=aw,cw=()=>Fe.toasts,dw=()=>Fe.getActiveToasts();Object.assign(uw,{success:Fe.success,info:Fe.info,warning:Fe.warning,error:Fe.error,custom:Fe.custom,message:Fe.message,promise:Fe.promise,dismiss:Fe.dismiss,loading:Fe.loading},{getHistory:cw,getToasts:dw});function fw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}fw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Ui(e){return e.label!==void 0}var pw=3,hw="32px",mw="16px",Vd=4e3,gw=356,vw=14,yw=20,xw=200;function ft(...e){return e.filter(Boolean).join(" ")}function ww(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var bw=e=>{var t,n,r,o,i,s,a,l,u,d,p;let{invert:g,toast:f,unstyled:C,interacting:y,setHeights:w,visibleToasts:m,heights:h,index:v,toasts:b,expanded:S,removeToast:E,defaultRichColors:k,closeButton:T,style:_,cancelButtonStyle:O,actionButtonStyle:$,className:D="",descriptionClassName:K="",duration:M,position:q,gap:B,loadingIcon:V,expandByDefault:P,classNames:j,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:F}=e,[Q,X]=A.useState(null),[he,Pe]=A.useState(null),[J,fr]=A.useState(!1),[Yt,zn]=A.useState(!1),[Zt,pr]=A.useState(!1),[Jt,xi]=A.useState(!1),[ua,wi]=A.useState(!1),[ca,co]=A.useState(0),[hr,vc]=A.useState(0),fo=A.useRef(f.duration||M||Vd),yc=A.useRef(null),$n=A.useRef(null),Ng=v===0,Pg=v+1<=m,et=f.type,mr=f.dismissible!==!1,Tg=f.className||"",jg=f.descriptionClassName||"",bi=A.useMemo(()=>h.findIndex(U=>U.toastId===f.id)||0,[h,f.id]),Rg=A.useMemo(()=>{var U;return(U=f.closeButton)!=null?U:T},[f.closeButton,T]),xc=A.useMemo(()=>f.duration||M||Vd,[f.duration,M]),da=A.useRef(0),gr=A.useRef(0),wc=A.useRef(0),vr=A.useRef(null),[Ag,Og]=q.split("-"),bc=A.useMemo(()=>h.reduce((U,te,se)=>se>=bi?U:U+te.height,0),[h,bi]),Cc=iw(),Mg=f.invert||g,fa=et==="loading";gr.current=A.useMemo(()=>bi*B+bc,[bi,bc]),A.useEffect(()=>{fo.current=xc},[xc]),A.useEffect(()=>{fr(!0)},[]),A.useEffect(()=>{let U=$n.current;if(U){let te=U.getBoundingClientRect().height;return vc(te),w(se=>[{toastId:f.id,height:te,position:f.position},...se]),()=>w(se=>se.filter(lt=>lt.toastId!==f.id))}},[w,f.id]),A.useLayoutEffect(()=>{if(!J)return;let U=$n.current,te=U.style.height;U.style.height="auto";let se=U.getBoundingClientRect().height;U.style.height=te,vc(se),w(lt=>lt.find(ut=>ut.toastId===f.id)?lt.map(ut=>ut.toastId===f.id?{...ut,height:se}:ut):[{toastId:f.id,height:se,position:f.position},...lt])},[J,f.title,f.description,w,f.id]);let en=A.useCallback(()=>{zn(!0),co(gr.current),w(U=>U.filter(te=>te.toastId!==f.id)),setTimeout(()=>{E(f)},xw)},[f,E,w,gr]);A.useEffect(()=>{if(f.promise&&et==="loading"||f.duration===1/0||f.type==="loading")return;let U;return S||y||F&&Cc?(()=>{if(wc.current{var te;(te=f.onAutoClose)==null||te.call(f,f),en()},fo.current)),()=>clearTimeout(U)},[S,y,f,et,F,Cc,en]),A.useEffect(()=>{f.delete&&en()},[en,f.delete]);function _g(){var U,te,se;return L!=null&&L.loading?A.createElement("div",{className:ft(j==null?void 0:j.loader,(U=f==null?void 0:f.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":et==="loading"},L.loading):V?A.createElement("div",{className:ft(j==null?void 0:j.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":et==="loading"},V):A.createElement(J0,{className:ft(j==null?void 0:j.loader,(se=f==null?void 0:f.classNames)==null?void 0:se.loader),visible:et==="loading"})}return A.createElement("li",{tabIndex:0,ref:$n,className:ft(D,Tg,j==null?void 0:j.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[et],(n=f==null?void 0:f.classNames)==null?void 0:n[et]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||C),"data-mounted":J,"data-promise":!!f.promise,"data-swiped":ua,"data-removed":Yt,"data-visible":Pg,"data-y-position":Ag,"data-x-position":Og,"data-index":v,"data-front":Ng,"data-swiping":Zt,"data-dismissible":mr,"data-type":et,"data-invert":Mg,"data-swipe-out":Jt,"data-swipe-direction":he,"data-expanded":!!(S||P&&J),style:{"--index":v,"--toasts-before":v,"--z-index":b.length-v,"--offset":`${Yt?ca:gr.current}px`,"--initial-height":P?"auto":`${hr}px`,..._,...f.style},onDragEnd:()=>{pr(!1),X(null),vr.current=null},onPointerDown:U=>{fa||!mr||(yc.current=new Date,co(gr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(pr(!0),vr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,se,lt;if(Jt||!mr)return;vr.current=null;let ut=Number(((U=$n.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),tn=Number(((te=$n.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bn=new Date().getTime()-((se=yc.current)==null?void 0:se.getTime()),ct=Q==="x"?ut:tn,nn=Math.abs(ct)/Bn;if(Math.abs(ct)>=yw||nn>.11){co(gr.current),(lt=f.onDismiss)==null||lt.call(f,f),Pe(Q==="x"?ut>0?"right":"left":tn>0?"down":"up"),en(),xi(!0),wi(!1);return}pr(!1),X(null)},onPointerMove:U=>{var te,se,lt,ut;if(!vr.current||!mr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let tn=U.clientY-vr.current.y,Bn=U.clientX-vr.current.x,ct=(se=e.swipeDirections)!=null?se:ww(q);!Q&&(Math.abs(Bn)>1||Math.abs(tn)>1)&&X(Math.abs(Bn)>Math.abs(tn)?"x":"y");let nn={x:0,y:0};Q==="y"?(ct.includes("top")||ct.includes("bottom"))&&(ct.includes("top")&&tn<0||ct.includes("bottom")&&tn>0)&&(nn.y=tn):Q==="x"&&(ct.includes("left")||ct.includes("right"))&&(ct.includes("left")&&Bn<0||ct.includes("right")&&Bn>0)&&(nn.x=Bn),(Math.abs(nn.x)>0||Math.abs(nn.y)>0)&&wi(!0),(lt=$n.current)==null||lt.style.setProperty("--swipe-amount-x",`${nn.x}px`),(ut=$n.current)==null||ut.style.setProperty("--swipe-amount-y",`${nn.y}px`)}},Rg&&!f.jsx?A.createElement("button",{"aria-label":H,"data-disabled":fa,"data-close-button":!0,onClick:fa||!mr?()=>{}:()=>{var U;en(),(U=f.onDismiss)==null||U.call(f,f)},className:ft(j==null?void 0:j.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(i=L==null?void 0:L.close)!=null?i:ow):null,f.jsx||x.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:A.createElement(A.Fragment,null,et||f.icon||f.promise?A.createElement("div",{"data-icon":"",className:ft(j==null?void 0:j.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||_g():null,f.type!=="loading"?f.icon||(L==null?void 0:L[et])||Y0(et):null):null,A.createElement("div",{"data-content":"",className:ft(j==null?void 0:j.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},A.createElement("div",{"data-title":"",className:ft(j==null?void 0:j.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?A.createElement("div",{"data-description":"",className:ft(K,jg,j==null?void 0:j.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),x.isValidElement(f.cancel)?f.cancel:f.cancel&&Ui(f.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:U=>{var te,se;Ui(f.cancel)&&mr&&((se=(te=f.cancel).onClick)==null||se.call(te,U),en())},className:ft(j==null?void 0:j.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,x.isValidElement(f.action)?f.action:f.action&&Ui(f.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||$,onClick:U=>{var te,se;Ui(f.action)&&((se=(te=f.action).onClick)==null||se.call(te,U),!U.defaultPrevented&&en())},className:ft(j==null?void 0:j.actionButton,(p=f==null?void 0:f.classNames)==null?void 0:p.actionButton)},f.action.label):null))};function Hd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Cw(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",a=i?mw:hw;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=a:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var Sw=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:p,duration:g,style:f,visibleToasts:C=pw,toastOptions:y,dir:w=Hd(),gap:m=vw,loadingIcon:h,icons:v,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:S}=e,[E,k]=A.useState([]),T=A.useMemo(()=>Array.from(new Set([r].concat(E.filter(F=>F.position).map(F=>F.position)))),[E,r]),[_,O]=A.useState([]),[$,D]=A.useState(!1),[K,M]=A.useState(!1),[q,B]=A.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=A.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=A.useRef(null),L=A.useRef(!1),H=A.useCallback(F=>{k(Q=>{var X;return(X=Q.find(he=>he.id===F.id))!=null&&X.delete||Fe.dismiss(F.id),Q.filter(({id:he})=>he!==F.id)})},[]);return A.useEffect(()=>Fe.subscribe(F=>{if(F.dismiss){k(Q=>Q.map(X=>X.id===F.id?{...X,delete:!0}:X));return}setTimeout(()=>{Uh.flushSync(()=>{k(Q=>{let X=Q.findIndex(he=>he.id===F.id);return X!==-1?[...Q.slice(0,X),{...Q[X],...F},...Q.slice(X+1)]:[F,...Q]})})})}),[]),A.useEffect(()=>{if(d!=="system"){B(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:Q})=>{B(Q?"dark":"light")})}catch{F.addListener(({matches:X})=>{try{B(X?"dark":"light")}catch(he){console.error(he)}})}},[d]),A.useEffect(()=>{E.length<=1&&D(!1)},[E]),A.useEffect(()=>{let F=Q=>{var X,he;o.every(Pe=>Q[Pe]||Q.code===Pe)&&(D(!0),(X=V.current)==null||X.focus()),Q.code==="Escape"&&(document.activeElement===V.current||(he=V.current)!=null&&he.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[o]),A.useEffect(()=>{if(V.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,L.current=!1)}},[V.current]),A.createElement("section",{ref:t,"aria-label":`${b} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((F,Q)=>{var X;let[he,Pe]=F.split("-");return E.length?A.createElement("ol",{key:F,dir:w==="auto"?Hd():w,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":q,"data-y-position":he,"data-lifted":$&&E.length>1&&!i,"data-x-position":Pe,style:{"--front-toast-height":`${((X=_[0])==null?void 0:X.height)||0}px`,"--width":`${gw}px`,"--gap":`${m}px`,...f,...Cw(l,u)},onBlur:J=>{L.current&&!J.currentTarget.contains(J.relatedTarget)&&(L.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L.current||(L.current=!0,j.current=J.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{K||D(!1)},onDragEnd:()=>D(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},E.filter(J=>!J.position&&Q===0||J.position===F).map((J,fr)=>{var Yt,zn;return A.createElement(bw,{key:J.id,icons:v,index:fr,toast:J,defaultRichColors:p,duration:(Yt=y==null?void 0:y.duration)!=null?Yt:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:C,closeButton:(zn=y==null?void 0:y.closeButton)!=null?zn:s,interacting:K,position:F,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:H,toasts:E.filter(Zt=>Zt.position==J.position),heights:_.filter(Zt=>Zt.position==J.position),setHeights:O,expandByDefault:i,gap:m,loadingIcon:h,expanded:$,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const Ew=({...e})=>{const{theme:t="system"}=X0();return c.jsx(Sw,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},kw=["top","right","bottom","left"],_n=Math.min,Qe=Math.max,As=Math.round,Vi=Math.floor,Mt=e=>({x:e,y:e}),Nw={left:"right",right:"left",bottom:"top",top:"bottom"},Pw={start:"end",end:"start"};function Kl(e,t,n){return Qe(e,_n(t,n))}function Gt(e,t){return typeof e=="function"?e(t):e}function qt(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function oc(e){return e==="x"?"y":"x"}function ic(e){return e==="y"?"height":"width"}const Tw=new Set(["top","bottom"]);function Rt(e){return Tw.has(qt(e))?"y":"x"}function sc(e){return oc(Rt(e))}function jw(e,t,n){n===void 0&&(n=!1);const r=ao(e),o=sc(e),i=ic(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Os(s)),[s,Os(s)]}function Rw(e){const t=Os(e);return[Ql(e),t,Ql(t)]}function Ql(e){return e.replace(/start|end/g,t=>Pw[t])}const Wd=["left","right"],Kd=["right","left"],Aw=["top","bottom"],Ow=["bottom","top"];function Mw(e,t,n){switch(e){case"top":case"bottom":return n?t?Kd:Wd:t?Wd:Kd;case"left":case"right":return t?Aw:Ow;default:return[]}}function _w(e,t,n,r){const o=ao(e);let i=Mw(qt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ql)))),i}function Os(e){return e.replace(/left|right|bottom|top/g,t=>Nw[t])}function Lw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rm(e){return typeof e!="number"?Lw(e):{top:e,right:e,bottom:e,left:e}}function Ms(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Qd(e,t,n){let{reference:r,floating:o}=e;const i=Rt(t),s=sc(t),a=ic(s),l=qt(t),u=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-o.width,y:p};break;default:f={x:r.x,y:r.y}}switch(ao(t)){case"start":f[s]-=g*(n&&u?-1:1);break;case"end":f[s]+=g*(n&&u?-1:1);break}return f}const Iw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Qd(u,r,l),g=r,f={},C=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=Gt(e,t)||{};if(u==null)return{};const p=Rm(d),g={x:n,y:r},f=sc(o),C=ic(f),y=await s.getDimensions(u),w=f==="y",m=w?"top":"left",h=w?"bottom":"right",v=w?"clientHeight":"clientWidth",b=i.reference[C]+i.reference[f]-g[f]-i.floating[C],S=g[f]-i.reference[f],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=E?E[v]:0;(!k||!await(s.isElement==null?void 0:s.isElement(E)))&&(k=a.floating[v]||i.floating[C]);const T=b/2-S/2,_=k/2-y[C]/2-1,O=_n(p[m],_),$=_n(p[h],_),D=O,K=k-y[C]-$,M=k/2-y[C]/2+T,q=Kl(D,M,K),B=!l.arrow&&ao(o)!=null&&M!==q&&i.reference[C]/2-(MM<=0)){var $,D;const M=((($=i.flip)==null?void 0:$.index)||0)+1,q=k[M];if(q&&(!(p==="alignment"?h!==Rt(q):!1)||O.every(P=>P.overflows[0]>0&&Rt(P.placement)===h)))return{data:{index:M,overflows:O},reset:{placement:q}};let B=(D=O.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:D.placement;if(!B)switch(f){case"bestFit":{var K;const V=(K=O.filter(P=>{if(E){const j=Rt(P.placement);return j===h||j==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,L)=>j+L,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:K[0];V&&(B=V);break}case"initialPlacement":B=a;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Gd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qd(e){return kw.some(t=>e[t]>=0)}const zw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Gt(e,t);switch(r){case"referenceHidden":{const i=await ei(t,{...o,elementContext:"reference"}),s=Gd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:qd(s)}}}case"escaped":{const i=await ei(t,{...o,altBoundary:!0}),s=Gd(i,n.floating);return{data:{escapedOffsets:s,escaped:qd(s)}}}default:return{}}}}},Am=new Set(["left","top"]);async function $w(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=qt(n),a=ao(n),l=Rt(n)==="y",u=Am.has(s)?-1:1,d=i&&l?-1:1,p=Gt(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:C}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof C=="number"&&(f=a==="end"?C*-1:C),l?{x:f*d,y:g*u}:{x:g*u,y:f*d}}const Bw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await $w(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Uw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:m,y:h}=w;return{x:m,y:h}}},...l}=Gt(e,t),u={x:n,y:r},d=await ei(t,l),p=Rt(qt(o)),g=oc(p);let f=u[g],C=u[p];if(i){const w=g==="y"?"top":"left",m=g==="y"?"bottom":"right",h=f+d[w],v=f-d[m];f=Kl(h,f,v)}if(s){const w=p==="y"?"top":"left",m=p==="y"?"bottom":"right",h=C+d[w],v=C-d[m];C=Kl(h,C,v)}const y=a.fn({...t,[g]:f,[p]:C});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:i,[p]:s}}}}}},Vw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Gt(e,t),d={x:n,y:r},p=Rt(o),g=oc(p);let f=d[g],C=d[p];const y=Gt(a,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const v=g==="y"?"height":"width",b=i.reference[g]-i.floating[v]+w.mainAxis,S=i.reference[g]+i.reference[v]-w.mainAxis;fS&&(f=S)}if(u){var m,h;const v=g==="y"?"width":"height",b=Am.has(qt(o)),S=i.reference[p]-i.floating[v]+(b&&((m=s.offset)==null?void 0:m[p])||0)+(b?0:w.crossAxis),E=i.reference[p]+i.reference[v]+(b?0:((h=s.offset)==null?void 0:h[p])||0)-(b?w.crossAxis:0);CE&&(C=E)}return{[g]:f,[p]:C}}}},Hw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Gt(e,t),d=await ei(t,u),p=qt(o),g=ao(o),f=Rt(o)==="y",{width:C,height:y}=i.floating;let w,m;p==="top"||p==="bottom"?(w=p,m=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=p,w=g==="end"?"top":"bottom");const h=y-d.top-d.bottom,v=C-d.left-d.right,b=_n(y-d[w],h),S=_n(C-d[m],v),E=!t.middlewareData.shift;let k=b,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=h),E&&!g){const O=Qe(d.left,0),$=Qe(d.right,0),D=Qe(d.top,0),K=Qe(d.bottom,0);f?T=C-2*(O!==0||$!==0?O+$:Qe(d.left,d.right)):k=y-2*(D!==0||K!==0?D+K:Qe(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:k});const _=await s.getDimensions(a.floating);return C!==_.width||y!==_.height?{reset:{rects:!0}}:{}}}};function na(){return typeof window<"u"}function lo(e){return Om(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lt(e){var t;return(t=(Om(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Om(e){return na()?e instanceof Node||e instanceof Xe(e).Node:!1}function Ct(e){return na()?e instanceof Element||e instanceof Xe(e).Element:!1}function _t(e){return na()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function Xd(e){return!na()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}const Ww=new Set(["inline","contents"]);function gi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=St(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ww.has(o)}const Kw=new Set(["table","td","th"]);function Qw(e){return Kw.has(lo(e))}const Gw=[":popover-open",":modal"];function ra(e){return Gw.some(t=>{try{return e.matches(t)}catch{return!1}})}const qw=["transform","translate","scale","rotate","perspective"],Xw=["transform","translate","scale","rotate","perspective","filter"],Yw=["paint","layout","strict","content"];function ac(e){const t=lc(),n=Ct(e)?St(e):e;return qw.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Xw.some(r=>(n.willChange||"").includes(r))||Yw.some(r=>(n.contain||"").includes(r))}function Zw(e){let t=Ln(e);for(;_t(t)&&!to(t);){if(ac(t))return t;if(ra(t))return null;t=Ln(t)}return null}function lc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Jw=new Set(["html","body","#document"]);function to(e){return Jw.has(lo(e))}function St(e){return Xe(e).getComputedStyle(e)}function oa(e){return Ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ln(e){if(lo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xd(e)&&e.host||Lt(e);return Xd(t)?t.host:t}function Mm(e){const t=Ln(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:_t(t)&&gi(t)?t:Mm(t)}function ti(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Mm(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Xe(o);if(i){const a=Gl(s);return t.concat(s,s.visualViewport||[],gi(o)?o:[],a&&n?ti(a):[])}return t.concat(o,ti(o,[],n))}function Gl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _m(e){const t=St(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_t(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=As(n)!==i||As(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function uc(e){return Ct(e)?e:e.contextElement}function Fr(e){const t=uc(e);if(!_t(t))return Mt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=_m(t);let s=(i?As(n.width):n.width)/r,a=(i?As(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const e1=Mt(0);function Lm(e){const t=Xe(e);return!lc()||!t.visualViewport?e1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function t1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xe(e)?!1:t}function sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=uc(e);let s=Mt(1);t&&(r?Ct(r)&&(s=Fr(r)):s=Fr(e));const a=t1(i,n,r)?Lm(i):Mt(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const g=Xe(i),f=r&&Ct(r)?Xe(r):r;let C=g,y=Gl(C);for(;y&&r&&f!==C;){const w=Fr(y),m=y.getBoundingClientRect(),h=St(y),v=m.left+(y.clientLeft+parseFloat(h.paddingLeft))*w.x,b=m.top+(y.clientTop+parseFloat(h.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,p*=w.y,l+=v,u+=b,C=Xe(y),y=Gl(C)}}return Ms({width:d,height:p,x:l,y:u})}function cc(e,t){const n=oa(e).scrollLeft;return t?t.left+n:sr(Lt(e)).left+n}function Im(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:cc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function n1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Lt(r),a=t?ra(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Mt(1);const d=Mt(0),p=_t(r);if((p||!p&&!i)&&((lo(r)!=="body"||gi(s))&&(l=oa(r)),_t(r))){const f=sr(r);u=Fr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const g=s&&!p&&!i?Im(s,l,!0):Mt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-l.scrollTop*u.y+d.y+g.y}}function r1(e){return Array.from(e.getClientRects())}function o1(e){const t=Lt(e),n=oa(e),r=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+cc(e);const a=-n.scrollTop;return St(r).direction==="rtl"&&(s+=Qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function i1(e,t){const n=Xe(e),r=Lt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=lc();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}const s1=new Set(["absolute","fixed"]);function a1(e,t){const n=sr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=_t(e)?Fr(e):Mt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Yd(e,t,n){let r;if(t==="viewport")r=i1(e,n);else if(t==="document")r=o1(Lt(e));else if(Ct(t))r=a1(t,n);else{const o=Lm(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ms(r)}function Dm(e,t){const n=Ln(e);return n===t||!Ct(n)||to(n)?!1:St(n).position==="fixed"||Dm(n,t)}function l1(e,t){const n=t.get(e);if(n)return n;let r=ti(e,[],!1).filter(a=>Ct(a)&&lo(a)!=="body"),o=null;const i=St(e).position==="fixed";let s=i?Ln(e):e;for(;Ct(s)&&!to(s);){const a=St(s),l=ac(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&s1.has(o.position)||gi(s)&&!l&&Dm(e,s))?r=r.filter(d=>d!==s):o=a,s=Ln(s)}return t.set(e,r),r}function u1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ra(t)?[]:l1(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const p=Yd(t,d,o);return u.top=Qe(p.top,u.top),u.right=_n(p.right,u.right),u.bottom=_n(p.bottom,u.bottom),u.left=Qe(p.left,u.left),u},Yd(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function c1(e){const{width:t,height:n}=_m(e);return{width:t,height:n}}function d1(e,t,n){const r=_t(t),o=Lt(t),i=n==="fixed",s=sr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Mt(0);function u(){l.x=cc(o)}if(r||!r&&!i)if((lo(t)!=="body"||gi(o))&&(a=oa(t)),r){const f=sr(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?Im(o,a):Mt(0),p=s.left+a.scrollLeft-l.x-d.x,g=s.top+a.scrollTop-l.y-d.y;return{x:p,y:g,width:s.width,height:s.height}}function Ha(e){return St(e).position==="static"}function Zd(e,t){if(!_t(e)||St(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Lt(e)===n&&(n=n.ownerDocument.body),n}function Fm(e,t){const n=Xe(e);if(ra(e))return n;if(!_t(e)){let o=Ln(e);for(;o&&!to(o);){if(Ct(o)&&!Ha(o))return o;o=Ln(o)}return n}let r=Zd(e,t);for(;r&&Qw(r)&&Ha(r);)r=Zd(r,t);return r&&to(r)&&Ha(r)&&!ac(r)?n:r||Zw(e)||n}const f1=async function(e){const t=this.getOffsetParent||Fm,n=this.getDimensions,r=await n(e.floating);return{reference:d1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function p1(e){return St(e).direction==="rtl"}const h1={convertOffsetParentRelativeRectToViewportRelativeRect:n1,getDocumentElement:Lt,getClippingRect:u1,getOffsetParent:Fm,getElementRects:f1,getClientRects:r1,getDimensions:c1,getScale:Fr,isElement:Ct,isRTL:p1};function zm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function m1(e,t){let n=null,r;const o=Lt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:p,width:g,height:f}=u;if(a||t(),!g||!f)return;const C=Vi(p),y=Vi(o.clientWidth-(d+g)),w=Vi(o.clientHeight-(p+f)),m=Vi(d),v={rootMargin:-C+"px "+-y+"px "+-w+"px "+-m+"px",threshold:Qe(0,_n(1,l))||1};let b=!0;function S(E){const k=E[0].intersectionRatio;if(k!==l){if(!b)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!zm(u,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return s(!0),i}function g1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=uc(e),d=o||i?[...u?ti(u):[],...ti(t)]:[];d.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const p=u&&a?m1(u,n):null;let g=-1,f=null;s&&(f=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=f)==null||v.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let C,y=l?sr(e):null;l&&w();function w(){const m=sr(e);y&&!zm(y,m)&&n(),y=m,C=requestAnimationFrame(w)}return n(),()=>{var m;d.forEach(h=>{o&&h.removeEventListener("scroll",n),i&&h.removeEventListener("resize",n)}),p==null||p(),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(C)}}const v1=Bw,y1=Uw,x1=Fw,w1=Hw,b1=zw,Jd=Dw,C1=Vw,S1=(e,t,n)=>{const r=new Map,o={platform:h1,...n},i={...o.platform,_c:r};return Iw(e,t,{...o,platform:i})};var E1=typeof document<"u",k1=function(){},is=E1?x.useLayoutEffect:k1;function _s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_s(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_s(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $m(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ef(e,t){const n=$m(e);return Math.round(t*n)/n}function Wa(e){const t=x.useRef(e);return is(()=>{t.current=e}),t}function N1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,f]=x.useState(r);_s(g,r)||f(r);const[C,y]=x.useState(null),[w,m]=x.useState(null),h=x.useCallback(P=>{P!==E.current&&(E.current=P,y(P))},[]),v=x.useCallback(P=>{P!==k.current&&(k.current=P,m(P))},[]),b=i||C,S=s||w,E=x.useRef(null),k=x.useRef(null),T=x.useRef(d),_=l!=null,O=Wa(l),$=Wa(o),D=Wa(u),K=x.useCallback(()=>{if(!E.current||!k.current)return;const P={placement:t,strategy:n,middleware:g};$.current&&(P.platform=$.current),S1(E.current,k.current,P).then(j=>{const L={...j,isPositioned:D.current!==!1};M.current&&!_s(T.current,L)&&(T.current=L,hi.flushSync(()=>{p(L)}))})},[g,t,n,$,D]);is(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[u]);const M=x.useRef(!1);is(()=>(M.current=!0,()=>{M.current=!1}),[]),is(()=>{if(b&&(E.current=b),S&&(k.current=S),b&&S){if(O.current)return O.current(b,S,K);K()}},[b,S,K,O,_]);const q=x.useMemo(()=>({reference:E,floating:k,setReference:h,setFloating:v}),[h,v]),B=x.useMemo(()=>({reference:b,floating:S}),[b,S]),V=x.useMemo(()=>{const P={position:n,left:0,top:0};if(!B.floating)return P;const j=ef(B.floating,d.x),L=ef(B.floating,d.y);return a?{...P,transform:"translate("+j+"px, "+L+"px)",...$m(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:L}},[n,a,B.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:K,refs:q,elements:B,floatingStyles:V}),[d,K,q,B,V])}const P1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Jd({element:r.current,padding:o}).fn(n):{}:r?Jd({element:r,padding:o}).fn(n):{}}}},T1=(e,t)=>({...v1(e),options:[e,t]}),j1=(e,t)=>({...y1(e),options:[e,t]}),R1=(e,t)=>({...C1(e),options:[e,t]}),A1=(e,t)=>({...x1(e),options:[e,t]}),O1=(e,t)=>({...w1(e),options:[e,t]}),M1=(e,t)=>({...b1(e),options:[e,t]}),_1=(e,t)=>({...P1(e),options:[e,t]});var L1="Arrow",Bm=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return c.jsx(He.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Bm.displayName=L1;var I1=Bm;function D1(e){const[t,n]=x.useState(void 0);return Mn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Um="Popper",[Vm,Hm]=Js(Um),[fS,Wm]=Vm(Um),Km="PopperAnchor",Qm=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Wm(Km,n),s=x.useRef(null),a=bt(t,s);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:c.jsx(He.div,{...o,ref:a})});Qm.displayName=Km;var dc="PopperContent",[F1,z1]=Vm(dc),Gm=x.forwardRef((e,t)=>{var J,fr,Yt,zn,Zt,pr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:f="optimized",onPlaced:C,...y}=e,w=Wm(dc,n),[m,h]=x.useState(null),v=bt(t,Jt=>h(Jt)),[b,S]=x.useState(null),E=D1(b),k=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,_=r+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],D=$.length>0,K={padding:O,boundary:$.filter(B1),altBoundary:D},{refs:M,floatingStyles:q,placement:B,isPositioned:V,middlewareData:P}=N1({strategy:"fixed",placement:_,whileElementsMounted:(...Jt)=>g1(...Jt,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[T1({mainAxis:o+T,alignmentAxis:s}),l&&j1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?R1():void 0,...K}),l&&A1({...K}),O1({...K,apply:({elements:Jt,rects:xi,availableWidth:ua,availableHeight:wi})=>{const{width:ca,height:co}=xi.reference,hr=Jt.floating.style;hr.setProperty("--radix-popper-available-width",`${ua}px`),hr.setProperty("--radix-popper-available-height",`${wi}px`),hr.setProperty("--radix-popper-anchor-width",`${ca}px`),hr.setProperty("--radix-popper-anchor-height",`${co}px`)}}),b&&_1({element:b,padding:a}),U1({arrowWidth:k,arrowHeight:T}),g&&M1({strategy:"referenceHidden",...K})]}),[j,L]=Ym(B),H=On(C);Mn(()=>{V&&(H==null||H())},[V,H]);const F=(J=P.arrow)==null?void 0:J.x,Q=(fr=P.arrow)==null?void 0:fr.y,X=((Yt=P.arrow)==null?void 0:Yt.centerOffset)!==0,[he,Pe]=x.useState();return Mn(()=>{m&&Pe(window.getComputedStyle(m).zIndex)},[m]),c.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:V?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(zn=P.transformOrigin)==null?void 0:zn.x,(Zt=P.transformOrigin)==null?void 0:Zt.y].join(" "),...((pr=P.hide)==null?void 0:pr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(F1,{scope:n,placedSide:j,onArrowChange:S,arrowX:F,arrowY:Q,shouldHideArrow:X,children:c.jsx(He.div,{"data-side":j,"data-align":L,...y,ref:v,style:{...y.style,animation:V?void 0:"none"}})})})});Gm.displayName=dc;var qm="PopperArrow",$1={top:"bottom",right:"left",bottom:"top",left:"right"},Xm=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=z1(qm,r),s=$1[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(I1,{...o,ref:n,style:{...o.style,display:"block"}})})});Xm.displayName=qm;function B1(e){return e!==null}var U1=e=>({name:"transformOrigin",options:e,fn(t){var w,m,h;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,d]=Ym(n),p={start:"0%",center:"50%",end:"100%"}[d],g=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,f=(((h=o.arrow)==null?void 0:h.y)??0)+l/2;let C="",y="";return u==="bottom"?(C=s?p:`${g}px`,y=`${-l}px`):u==="top"?(C=s?p:`${g}px`,y=`${r.floating.height+l}px`):u==="right"?(C=`${-l}px`,y=s?p:`${f}px`):u==="left"&&(C=`${r.floating.width+l}px`,y=s?p:`${f}px`),{data:{x:C,y}}}});function Ym(e){const[t,n="center"]=e.split("-");return[t,n]}var V1=Qm,H1=Gm,W1=Xm,[ia,pS]=Js("Tooltip",[Hm]),fc=Hm(),Zm="TooltipProvider",K1=700,tf="tooltip.open",[Q1,Jm]=ia(Zm),eg=e=>{const{__scopeTooltip:t,delayDuration:n=K1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(Q1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};eg.displayName=Zm;var tg="Tooltip",[hS,sa]=ia(tg),ql="TooltipTrigger",G1=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sa(ql,n),i=Jm(ql,n),s=fc(n),a=x.useRef(null),l=bt(t,a,o.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),p=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(V1,{asChild:!0,...s,children:c.jsx(He.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ye(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});G1.displayName=ql;var q1="TooltipPortal",[mS,X1]=ia(q1,{forceMount:void 0}),no="TooltipContent",ng=x.forwardRef((e,t)=>{const n=X1(no,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=sa(no,e.__scopeTooltip);return c.jsx(Ju,{present:r||s.open,children:s.disableHoverableContent?c.jsx(rg,{side:o,...i,ref:t}):c.jsx(Y1,{side:o,...i,ref:t})})}),Y1=x.forwardRef((e,t)=>{const n=sa(no,e.__scopeTooltip),r=Jm(no,e.__scopeTooltip),o=x.useRef(null),i=bt(t,o),[s,a]=x.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,g=x.useCallback(()=>{a(null),p(!1)},[p]),f=x.useCallback((C,y)=>{const w=C.currentTarget,m={x:C.clientX,y:C.clientY},h=nb(m,w.getBoundingClientRect()),v=rb(m,h),b=ob(y.getBoundingClientRect()),S=sb([...v,...b]);a(S),p(!0)},[p]);return x.useEffect(()=>()=>g(),[g]),x.useEffect(()=>{if(l&&d){const C=w=>f(w,d),y=w=>f(w,l);return l.addEventListener("pointerleave",C),d.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",C),d.removeEventListener("pointerleave",y)}}},[l,d,f,g]),x.useEffect(()=>{if(s){const C=y=>{const w=y.target,m={x:y.clientX,y:y.clientY},h=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),v=!ib(m,s);h?g():v&&(g(),u())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[l,d,s,u,g]),c.jsx(rg,{...e,ref:i})}),[Z1,J1]=ia(tg,{isInside:!1}),eb=mx("TooltipContent"),rg=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=sa(no,n),u=fc(n),{onClose:d}=l;return x.useEffect(()=>(document.addEventListener(tf,d),()=>document.removeEventListener(tf,d)),[d]),x.useEffect(()=>{if(l.trigger){const p=g=>{const f=g.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),c.jsx(Zu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(H1,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(eb,{children:r}),c.jsx(Z1,{scope:n,isInside:!0,children:c.jsx($x,{id:l.contentId,role:"tooltip",children:o||r})})]})})});ng.displayName=no;var og="TooltipArrow",tb=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fc(n);return J1(og,n).isInside?null:c.jsx(W1,{...o,...r,ref:t})});tb.displayName=og;function nb(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function rb(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ob(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ib(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=g>r&&n<(p-u)*(r-d)/(g-d)+u&&(o=!o)}return o}function sb(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),ab(t)}function ab(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var lb=eg,ig=ng;const ub=lb,cb=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(ig,{ref:r,sideOffset:t,className:ur("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));cb.displayName=ig.displayName;var aa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qn,fn,zr,xf,db=(xf=class extends aa{constructor(){super();Y(this,Qn);Y(this,fn);Y(this,zr);z(this,zr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,fn)||this.setEventListener(N(this,zr))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,fn))==null||t.call(this),z(this,fn,void 0))}setEventListener(t){var n;z(this,zr,t),(n=N(this,fn))==null||n.call(this),z(this,fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,Qn)!==t&&(z(this,Qn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,Qn)=="boolean"?N(this,Qn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Qn=new WeakMap,fn=new WeakMap,zr=new WeakMap,xf),sg=new db,fb={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},pn,ru,wf,pb=(wf=class{constructor(){Y(this,pn,fb);Y(this,ru,!1)}setTimeoutProvider(e){z(this,pn,e)}setTimeout(e,t){return N(this,pn).setTimeout(e,t)}clearTimeout(e){N(this,pn).clearTimeout(e)}setInterval(e,t){return N(this,pn).setInterval(e,t)}clearInterval(e){N(this,pn).clearInterval(e)}},pn=new WeakMap,ru=new WeakMap,wf),Xl=new pb;function hb(e){setTimeout(e,0)}var mb=typeof window>"u"||"Deno"in globalThis;function ht(){}function gb(e,t){return typeof e=="function"?e(t):e}function vb(e){return typeof e=="number"&&e>=0&&e!==1/0}function yb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yl(e,t){return typeof e=="function"?e(t):e}function xb(e,t){return typeof e=="function"?e(t):e}function nf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==pc(s,t.options))return!1}else if(!ri(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function rf(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ni(t.options.mutationKey)!==ni(i))return!1}else if(!ri(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function pc(e,t){return((t==null?void 0:t.queryKeyHashFn)||ni)(e)}function ni(e){return JSON.stringify(e,(t,n)=>Zl(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ri(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ri(e[n],t[n])):!1}var wb=Object.prototype.hasOwnProperty;function ag(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=of(e)&&of(t);if(!r&&!(Zl(e)&&Zl(t)))return t;const i=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),a=s.length,l=r?new Array(a):{};let u=0;for(let d=0;d{Xl.setTimeout(t,e)})}function Cb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ag(e,t):t}function Sb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Eb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var hc=Symbol();function lg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===hc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function kb(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var ug=(()=>{let e=()=>mb;return{isServer(){return e()},setIsServer(t){e=t}}})();function Nb(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var Pb=hb;function Tb(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Pb;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var _e=Tb(),$r,hn,Br,bf,jb=(bf=class extends aa{constructor(){super();Y(this,$r,!0);Y(this,hn);Y(this,Br);z(this,Br,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,hn)||this.setEventListener(N(this,Br))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,hn))==null||t.call(this),z(this,hn,void 0))}setEventListener(t){var n;z(this,Br,t),(n=N(this,hn))==null||n.call(this),z(this,hn,t(this.setOnline.bind(this)))}setOnline(t){N(this,$r)!==t&&(z(this,$r,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,$r)}},$r=new WeakMap,hn=new WeakMap,Br=new WeakMap,bf),Ls=new jb;function Rb(e){return Math.min(1e3*2**e,3e4)}function cg(e){return(e??"online")==="online"?Ls.isOnline():!0}var Jl=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dg(e){let t=!1,n=0,r;const o=Nb(),i=()=>o.status!=="pending",s=y=>{var w;if(!i()){const m=new Jl(y);g(m),(w=e.onCancel)==null||w.call(e,m)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>sg.isFocused()&&(e.networkMode==="always"||Ls.isOnline())&&e.canRun(),d=()=>cg(e.networkMode)&&e.canRun(),p=y=>{i()||(r==null||r(),o.resolve(y))},g=y=>{i()||(r==null||r(),o.reject(y))},f=()=>new Promise(y=>{var w;r=m=>{(i()||u())&&y(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;r=void 0,i()||(y=e.onContinue)==null||y.call(e)}),C=()=>{if(i())return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(p).catch(m=>{var E;if(i())return;const h=e.retry??(ug.isServer()?0:3),v=e.retryDelay??Rb,b=typeof v=="function"?v(n,m):v,S=h===!0||typeof h=="number"&&nu()?void 0:f()).then(()=>{t?g(m):C()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?C():f().then(C),o)}}var Gn,Cf,fg=(Cf=class{constructor(){Y(this,Gn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vb(this.gcTime)&&z(this,Gn,Xl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ug.isServer()?1/0:5*60*1e3))}clearGcTimeout(){N(this,Gn)!==void 0&&(Xl.clearTimeout(N(this,Gn)),z(this,Gn,void 0))}},Gn=new WeakMap,Cf);function Ab(e){return{onFetch:(t,n)=>{var d,p,g,f,C;const r=t.options,o=(g=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],s=((C=t.state.data)==null?void 0:C.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const w=v=>{kb(v,()=>t.signal,()=>y=!0)},m=lg(t.options,t.fetchOptions),h=async(v,b,S)=>{if(y)return Promise.reject(t.signal.reason);if(b==null&&v.pages.length)return Promise.resolve(v);const k=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:b,direction:S?"backward":"forward",meta:t.options.meta};return w($),$})(),T=await m(k),{maxPages:_}=t.options,O=S?Eb:Sb;return{pages:O(v.pages,T,_),pageParams:O(v.pageParams,b,_)}};if(o&&i.length){const v=o==="backward",b=v?Ob:af,S={pages:i,pageParams:s},E=b(r,S);a=await h(S,E,v)}else{const v=e??i.length;do{const b=l===0?s[0]??r.initialPageParam:af(r,a);if(l>0&&b==null)break;a=await h(a,b),l++}while(l{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function af(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ob(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ur,qn,Vr,tt,Xn,we,si,Yn,Ke,pg,Dt,Sf,Mb=(Sf=class extends fg{constructor(t){super();Y(this,Ke);Y(this,Ur);Y(this,qn);Y(this,Vr);Y(this,tt);Y(this,Xn);Y(this,we);Y(this,si);Y(this,Yn);z(this,Yn,!1),z(this,si,t.defaultOptions),this.setOptions(t.options),this.observers=[],z(this,Xn,t.client),z(this,tt,N(this,Xn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,qn,uf(this.options)),this.state=t.state??N(this,qn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return N(this,Ur)}get promise(){var t;return(t=N(this,we))==null?void 0:t.promise}setOptions(t){if(this.options={...N(this,si),...t},t!=null&&t._type&&z(this,Ur,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=uf(this.options);n.data!==void 0&&(this.setState(lf(n.data,n.dataUpdatedAt)),z(this,qn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,tt).remove(this)}setData(t,n){const r=Cb(this.state.data,t,this.options);return Se(this,Ke,Dt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Se(this,Ke,Dt).call(this,{type:"setState",state:t})}cancel(t){var r,o;const n=(r=N(this,we))==null?void 0:r.promise;return(o=N(this,we))==null||o.cancel(t),n?n.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return N(this,qn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>xb(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Yl(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!yb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,we))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,we))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,we)&&(N(this,Yn)||Se(this,Ke,pg).call(this)?N(this,we).cancel({revert:!0}):N(this,we).cancelRetry()),this.scheduleGc()),N(this,tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,Ke,Dt).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,p,g,f,C,y,w,m,h,v;if(this.state.fetchStatus!=="idle"&&((u=N(this,we))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,we))return N(this,we).continueRetry(),N(this,we).promise}if(t&&this.setOptions(t),!this.options.queryFn){const b=this.observers.find(S=>S.options.queryFn);b&&this.setOptions(b.options)}const r=new AbortController,o=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(z(this,Yn,!0),r.signal)})},i=()=>{const b=lg(this.options,n),E=(()=>{const k={client:N(this,Xn),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return z(this,Yn,!1),this.options.persister?this.options.persister(b,E,this):b(E)},a=(()=>{const b={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,Xn),state:this.state,fetchFn:i};return o(b),b})(),l=N(this,Ur)==="infinite"?Ab(this.options.pages):this.options.behavior;l==null||l.onFetch(a,this),z(this,Vr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Se(this,Ke,Dt).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta}),z(this,we,dg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:b=>{b instanceof Jl&&b.revert&&this.setState({...N(this,Vr),fetchStatus:"idle"}),r.abort()},onFail:(b,S)=>{Se(this,Ke,Dt).call(this,{type:"failed",failureCount:b,error:S})},onPause:()=>{Se(this,Ke,Dt).call(this,{type:"pause"})},onContinue:()=>{Se(this,Ke,Dt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const b=await N(this,we).start();if(b===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(b),(f=(g=N(this,tt).config).onSuccess)==null||f.call(g,b,this),(y=(C=N(this,tt).config).onSettled)==null||y.call(C,b,this.state.error,this),b}catch(b){if(b instanceof Jl){if(b.silent)return N(this,we).promise;if(b.revert){if(this.state.data===void 0)throw b;return this.state.data}}throw Se(this,Ke,Dt).call(this,{type:"error",error:b}),(m=(w=N(this,tt).config).onError)==null||m.call(w,b,this),(v=(h=N(this,tt).config).onSettled)==null||v.call(h,this.state.data,b,this),b}finally{this.scheduleGc()}}},Ur=new WeakMap,qn=new WeakMap,Vr=new WeakMap,tt=new WeakMap,Xn=new WeakMap,we=new WeakMap,si=new WeakMap,Yn=new WeakMap,Ke=new WeakSet,pg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,..._b(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...lf(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return z(this,Vr,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),_e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,tt).notify({query:this,type:"updated",action:t})})},Sf);function _b(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function lf(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function uf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ai,Nt,Re,Zn,Pt,an,Ef,Lb=(Ef=class extends fg{constructor(t){super();Y(this,Pt);Y(this,ai);Y(this,Nt);Y(this,Re);Y(this,Zn);z(this,ai,t.client),this.mutationId=t.mutationId,z(this,Re,t.mutationCache),z(this,Nt,[]),this.state=t.state||Ib(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Nt).includes(t)||(N(this,Nt).push(t),this.clearGcTimeout(),N(this,Re).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,Nt,N(this,Nt).filter(n=>n!==t)),this.scheduleGc(),N(this,Re).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Nt).length||(this.state.status==="pending"?this.scheduleGc():N(this,Re).remove(this))}continue(){var t;return((t=N(this,Zn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,u,d,p,g,f,C,y,w,m,h,v,b,S,E,k;const n=()=>{Se(this,Pt,an).call(this,{type:"continue"})},r={client:N(this,ai),meta:this.options.meta,mutationKey:this.options.mutationKey};z(this,Zn,dg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(T,_)=>{Se(this,Pt,an).call(this,{type:"failed",failureCount:T,error:_})},onPause:()=>{Se(this,Pt,an).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Re).canRun(this)}));const o=this.state.status==="pending",i=!N(this,Zn).canStart();try{if(o)n();else{Se(this,Pt,an).call(this,{type:"pending",variables:t,isPaused:i}),N(this,Re).config.onMutate&&await N(this,Re).config.onMutate(t,this,r);const _=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t,r));_!==this.state.context&&Se(this,Pt,an).call(this,{type:"pending",context:_,variables:t,isPaused:i})}const T=await N(this,Zn).start();return await((u=(l=N(this,Re).config).onSuccess)==null?void 0:u.call(l,T,t,this.state.context,this,r)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,T,t,this.state.context,r)),await((f=(g=N(this,Re).config).onSettled)==null?void 0:f.call(g,T,null,this.state.variables,this.state.context,this,r)),await((y=(C=this.options).onSettled)==null?void 0:y.call(C,T,null,t,this.state.context,r)),Se(this,Pt,an).call(this,{type:"success",data:T}),T}catch(T){try{await((m=(w=N(this,Re).config).onError)==null?void 0:m.call(w,T,t,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((v=(h=this.options).onError)==null?void 0:v.call(h,T,t,this.state.context,r))}catch(_){Promise.reject(_)}try{await((S=(b=N(this,Re).config).onSettled)==null?void 0:S.call(b,void 0,T,this.state.variables,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((k=(E=this.options).onSettled)==null?void 0:k.call(E,void 0,T,t,this.state.context,r))}catch(_){Promise.reject(_)}throw Se(this,Pt,an).call(this,{type:"error",error:T}),T}finally{N(this,Re).runNext(this)}}},ai=new WeakMap,Nt=new WeakMap,Re=new WeakMap,Zn=new WeakMap,Pt=new WeakSet,an=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),_e.batch(()=>{N(this,Nt).forEach(r=>{r.onMutationUpdate(t)}),N(this,Re).notify({mutation:this,type:"updated",action:t})})},Ef);function Ib(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $t,mt,li,kf,Db=(kf=class extends aa{constructor(t={}){super();Y(this,$t);Y(this,mt);Y(this,li);this.config=t,z(this,$t,new Set),z(this,mt,new Map),z(this,li,0)}build(t,n,r){const o=new Lb({client:t,mutationCache:this,mutationId:++Ci(this,li)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){N(this,$t).add(t);const n=Hi(t);if(typeof n=="string"){const r=N(this,mt).get(n);r?r.push(t):N(this,mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,$t).delete(t)){const n=Hi(t);if(typeof n=="string"){const r=N(this,mt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&N(this,mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Hi(t);if(typeof n=="string"){const r=N(this,mt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Hi(t);if(typeof n=="string"){const o=(r=N(this,mt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){_e.batch(()=>{N(this,$t).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,$t).clear(),N(this,mt).clear()})}getAll(){return Array.from(N(this,$t))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>rf(n,r))}findAll(t={}){return this.getAll().filter(n=>rf(t,n))}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return _e.batch(()=>Promise.all(t.map(n=>n.continue().catch(ht))))}},$t=new WeakMap,mt=new WeakMap,li=new WeakMap,kf);function Hi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Tt,Nf,Fb=(Nf=class extends aa{constructor(t={}){super();Y(this,Tt);this.config=t,z(this,Tt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??pc(o,n);let s=this.get(i);return s||(s=new Mb({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){N(this,Tt).has(t.queryHash)||(N(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,Tt).get(t)}getAll(){return[...N(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>nf(t,r)):n}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){_e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,Nf),de,mn,gn,Hr,Wr,vn,Kr,Qr,Pf,zb=(Pf=class{constructor(e={}){Y(this,de);Y(this,mn);Y(this,gn);Y(this,Hr);Y(this,Wr);Y(this,vn);Y(this,Kr);Y(this,Qr);z(this,de,e.queryCache||new Fb),z(this,mn,e.mutationCache||new Db),z(this,gn,e.defaultOptions||{}),z(this,Hr,new Map),z(this,Wr,new Map),z(this,vn,0)}mount(){Ci(this,vn)._++,N(this,vn)===1&&(z(this,Kr,sg.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onFocus())})),z(this,Qr,Ls.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onOnline())})))}unmount(){var e,t;Ci(this,vn)._--,N(this,vn)===0&&((e=N(this,Kr))==null||e.call(this),z(this,Kr,void 0),(t=N(this,Qr))==null||t.call(this),z(this,Qr,void 0))}isFetching(e){return N(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,mn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Yl(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=N(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=gb(t,i);if(s!==void 0)return N(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return _e.batch(()=>N(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,de);_e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,de);return _e.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_e.batch(()=>N(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ht).catch(ht)}invalidateQueries(e,t={}){return _e.batch(()=>(N(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=_e.batch(()=>N(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(ht)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,de).build(this,t);return n.isStaleByTime(Yl(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ht).catch(ht)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ht).catch(ht)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Ls.isOnline()?N(this,mn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,de)}getMutationCache(){return N(this,mn)}getDefaultOptions(){return N(this,gn)}setDefaultOptions(e){z(this,gn,e)}setQueryDefaults(e,t){N(this,Hr).set(ni(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,Hr).values()],n={};return t.forEach(r=>{ri(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,Wr).set(ni(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Wr).values()],n={};return t.forEach(r=>{ri(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,gn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===hc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,gn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,de).clear(),N(this,mn).clear()}},de=new WeakMap,mn=new WeakMap,gn=new WeakMap,Hr=new WeakMap,Wr=new WeakMap,vn=new WeakMap,Kr=new WeakMap,Qr=new WeakMap,Pf),$b=x.createContext(void 0),Bb=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx($b.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function hg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vb(){return Math.random().toString(36).substr(2,8)}function df(e,t){return{usr:e.state,key:e.key,idx:t}}function eu(e,t,n,r){return n===void 0&&(n=null),oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?uo(t):t,{state:n,key:t&&t.key||r||Vb()})}function Is(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function uo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Hb(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=wn.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(oi({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=wn.Pop;let w=d(),m=w==null?null:w-u;u=w,l&&l({action:a,location:y.location,delta:m})}function g(w,m){a=wn.Push;let h=eu(y.location,w,m);u=d()+1;let v=df(h,u),b=y.createHref(h);try{s.pushState(v,"",b)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(b)}i&&l&&l({action:a,location:y.location,delta:1})}function f(w,m){a=wn.Replace;let h=eu(y.location,w,m);u=d();let v=df(h,u),b=y.createHref(h);s.replaceState(v,"",b),i&&l&&l({action:a,location:y.location,delta:0})}function C(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof w=="string"?w:Is(w);return h=h.replace(/ $/,"%20"),ge(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(cf,p),l=w,()=>{o.removeEventListener(cf,p),l=null}},createHref(w){return t(o,w)},createURL:C,encodeLocation(w){let m=C(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:f,go(w){return s.go(w)}};return y}var ff;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ff||(ff={}));function Wb(e,t,n){return n===void 0&&(n="/"),Kb(e,t,n)}function Kb(e,t,n,r){let o=typeof t=="string"?uo(t):t,i=mc(o.pathname||"/",n);if(i==null)return null;let s=mg(e);Qb(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ge(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=jn([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(ge(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),mg(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:eC(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of gg(i.path))o(i,s,l)}),t}function gg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=gg(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Qb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Gb=/^:[\w-]+$/,qb=3,Xb=2,Yb=1,Zb=10,Jb=-2,pf=e=>e==="*";function eC(e,t){let n=e.split("/"),r=n.length;return n.some(pf)&&(r+=Jb),t&&(r+=Xb),n.filter(o=>!pf(o)).reduce((o,i)=>o+(Gb.test(i)?qb:i===""?Yb:Zb),r)}function tC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function nC(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:g,isOptional:f}=d;if(g==="*"){let y=a[p]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const C=a[p];return f&&!C?u[g]=void 0:u[g]=(C||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function oC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),hg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function iC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return hg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function mc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function sC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?uo(e):e;return{pathname:n?n.startsWith("/")?n:aC(n,t):t,search:cC(r),hash:dC(o)}}function aC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ka(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vg(e,t){let n=lC(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function yg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=uo(e):(o=oi({},e),ge(!o.pathname||!o.pathname.includes("?"),Ka("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Ka("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Ka("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}a=p>=0?t[p]:"/"}let l=sC(o,a),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const jn=e=>e.join("/").replace(/\/\/+/g,"/"),uC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xg=["post","put","patch","delete"];new Set(xg);const pC=["get",...xg];new Set(pC);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),x.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let p=yg(u,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:jn([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,s,i,e])}function Cg(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(cr),{matches:o}=x.useContext(dr),{pathname:i}=yi(),s=JSON.stringify(vg(o,r.v7_relativeSplatPath));return x.useMemo(()=>yg(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function yC(e,t){return xC(e,t)}function xC(e,t,n,r){vi()||ge(!1);let{navigator:o}=x.useContext(cr),{matches:i}=x.useContext(dr),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=yi(),d;if(t){var p;let w=typeof t=="string"?uo(t):t;l==="/"||(p=w.pathname)!=null&&p.startsWith(l)||ge(!1),d=w}else d=u;let g=d.pathname||"/",f=g;if(l!=="/"){let w=l.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let C=Wb(e,{pathname:f}),y=EC(C&&C.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:jn([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:jn([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&y?x.createElement(la.Provider,{value:{location:ii({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:wn.Pop}},y):y}function wC(){let e=TC(),t=fC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const bC=x.createElement(wC,null);class CC extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(dr.Provider,{value:this.props.routeContext},x.createElement(wg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function SC(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(gc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(dr.Provider,{value:t},r)}function EC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||ge(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,g)=>{let f,C=!1,y=null,w=null;n&&(f=a&&p.route.id?a[p.route.id]:void 0,y=p.route.errorElement||bC,l&&(u<0&&g===0?(RC("route-fallback"),C=!0,w=null):u===g&&(C=!0,w=p.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,g+1)),h=()=>{let v;return f?v=y:C?v=w:p.route.Component?v=x.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=d,x.createElement(SC,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?x.createElement(CC,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Sg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sg||{}),Eg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Eg||{});function kC(e){let t=x.useContext(gc);return t||ge(!1),t}function NC(e){let t=x.useContext(hC);return t||ge(!1),t}function PC(e){let t=x.useContext(dr);return t||ge(!1),t}function kg(e){let t=PC(),n=t.matches[t.matches.length-1];return n.route.id||ge(!1),n.route.id}function TC(){var e;let t=x.useContext(wg),n=NC(),r=kg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function jC(){let{router:e}=kC(Sg.UseNavigateStable),t=kg(Eg.UseNavigateStable),n=x.useRef(!1);return bg(()=>{n.current=!0}),x.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ii({fromRouteId:t},i)))},[e,t])}const hf={};function RC(e,t,n){hf[e]||(hf[e]=!0)}function AC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ss(e){ge(!1)}function OC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=wn.Pop,navigator:i,static:s=!1,future:a}=e;vi()&&ge(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:i,static:s,future:ii({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=uo(r));let{pathname:d="/",search:p="",hash:g="",state:f=null,key:C="default"}=r,y=x.useMemo(()=>{let w=mc(d,l);return w==null?null:{location:{pathname:w,search:p,hash:g,state:f,key:C},navigationType:o}},[l,d,p,g,f,C,o]);return y==null?null:x.createElement(cr.Provider,{value:u},x.createElement(la.Provider,{children:n,value:y}))}function MC(e){let{children:t,location:n}=e;return yC(tu(t),n)}new Promise(()=>{});function tu(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let i=[...t,o];if(r.type===x.Fragment){n.push.apply(n,tu(r.props.children,i));return}r.type!==ss&&ge(!1),!r.props.index||!r.props.children||ge(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=tu(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function nu(){return nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function LC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function IC(e,t){return e.button===0&&(!t||t==="_self")&&!LC(e)}const DC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],FC="6";try{window.__reactRouterVersion=FC}catch{}const zC="startTransition",mf=zf[zC];function $C(e){let{basename:t,children:n,future:r,window:o}=e,i=x.useRef();i.current==null&&(i.current=Ub({window:o,v5Compat:!0}));let s=i.current,[a,l]=x.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=x.useCallback(p=>{u&&mf?mf(()=>l(p)):l(p)},[l,u]);return x.useLayoutEffect(()=>s.listen(d),[s,d]),x.useEffect(()=>AC(r),[r]),x.createElement(OC,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const BC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,VC=x.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:d,viewTransition:p}=t,g=_C(t,DC),{basename:f}=x.useContext(cr),C,y=!1;if(typeof u=="string"&&UC.test(u)&&(C=u,BC))try{let v=new URL(window.location.href),b=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=mc(b.pathname,f);b.origin===v.origin&&S!=null?u=S+b.search+b.hash:y=!0}catch{}let w=mC(u,{relative:o}),m=HC(u,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,viewTransition:p});function h(v){r&&r(v),v.defaultPrevented||m(v)}return x.createElement("a",nu({},g,{href:C||w,onClick:y||i?r:h,ref:n,target:l}))});var gf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gf||(gf={}));var vf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vf||(vf={}));function HC(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=gC(),u=yi(),d=Cg(e,{relative:s});return x.useCallback(p=>{if(IC(p,n)){p.preventDefault();let g=r!==void 0?r:Is(u)===Is(d);l(e,{replace:g,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[u,l,d,r,o,n,e,i,s,a])}const WC=()=>c.jsx("header",{className:"w-full bg-white border-b border-[hsl(var(--border-light))] sticky top-0 z-50",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8 flex items-center justify-between h-16",children:[c.jsxs(VC,{to:"/",className:"flex items-center gap-3 group",children:[c.jsx("div",{className:"w-9 h-9 rounded bg-navy flex items-center justify-center",children:c.jsx("span",{className:"text-gold font-bold text-sm",children:"A"})}),c.jsxs("div",{className:"flex flex-col leading-none",children:[c.jsx("span",{className:"text-navy font-bold text-base tracking-tight",children:"Almanza"}),c.jsx("span",{className:"text-[hsl(var(--text-secondary))] text-xs font-medium tracking-wide",children:"Investment Company"})]})]}),c.jsx("nav",{className:"hidden lg:flex items-center gap-8",children:["About Us","Investments","Governance","Investor Relations","Contact"].map(e=>c.jsx("a",{href:"#",className:"text-sm font-medium text-[hsl(var(--text-secondary))] hover:text-navy transition-colors duration-200",children:e},e))}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{className:"text-xs font-semibold text-navy border border-[hsl(var(--border-light))] rounded px-3 py-1.5 hover:border-gold hover:text-gold transition-all duration-200",children:"العربية"}),c.jsx("button",{className:"hidden lg:flex items-center gap-1.5 text-xs font-medium text-white bg-navy px-4 py-2 rounded hover:bg-[hsl(var(--navy-deep))] transition-colors duration-200",children:"Client Portal"})]})]})}),KC=()=>c.jsxs("footer",{className:"bg-navy text-white",children:[c.jsx("div",{className:"h-[3px] bg-gradient-to-r from-gold via-[hsl(var(--gold-light))] to-transparent"}),c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8 py-12",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10 mb-10",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"w-9 h-9 rounded bg-[hsl(var(--gold))/20] border border-gold flex items-center justify-center",children:c.jsx("span",{className:"text-gold font-bold text-sm",children:"A"})}),c.jsxs("div",{children:[c.jsx("p",{className:"font-bold text-base text-white leading-none",children:"Almanza"}),c.jsx("p",{className:"text-xs text-white/60 font-medium mt-0.5",children:"Investment Company KSCC"})]})]}),c.jsx("p",{className:"text-sm text-white/65 leading-relaxed mb-4",children:"A Kuwaiti Shareholding Company (KSCC) licensed by the Capital Markets Authority, committed to Shari'a-compliant investment excellence."}),c.jsx("p",{className:"font-arabic text-sm text-white/60 leading-relaxed",children:"شركة كويتية مساهمة مرخصة من هيئة أسواق المال"})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-sm font-semibold text-gold uppercase tracking-wider mb-4",children:"Quick Links"}),c.jsx("ul",{className:"space-y-2.5",children:["About Us","Board of Directors","Executive Management","Organization Structure","Governance Policies","Financial Reports"].map(e=>c.jsx("li",{children:c.jsx("a",{href:"#",className:"text-sm text-white/65 hover:text-gold transition-colors duration-200",children:e})},e))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-sm font-semibold text-gold uppercase tracking-wider mb-4",children:"Investment Divisions"}),c.jsx("ul",{className:"space-y-2.5",children:["Investment Management","Private Equity & Venture Capital","Real Estate","Shari'a Compliance","Risk & Compliance","Operations & Finance"].map(e=>c.jsx("li",{children:c.jsx("a",{href:"#",className:"text-sm text-white/65 hover:text-gold transition-colors duration-200",children:e})},e))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-sm font-semibold text-gold uppercase tracking-wider mb-4",children:"Contact"}),c.jsxs("div",{className:"space-y-3 text-sm text-white/65",children:[c.jsxs("p",{children:["Almanza Tower, Al-Sharq",c.jsx("br",{}),"Kuwait City, Kuwait"]}),c.jsxs("p",{children:["P.O. Box XXXXX, Safat 13001",c.jsx("br",{}),"State of Kuwait"]}),c.jsxs("p",{children:["Tel: +965 XXXX XXXX",c.jsx("br",{}),"Fax: +965 XXXX XXXX"]}),c.jsxs("p",{children:["IR: ",c.jsx("a",{href:"mailto:ir@almanza.com.kw",className:"text-gold hover:underline",children:"ir@almanza.com.kw"})]})]})]})]}),c.jsxs("div",{className:"border-t border-white/10 pt-8 flex flex-col lg:flex-row items-start lg:items-center justify-between gap-6",children:[c.jsx("div",{className:"flex flex-wrap gap-3",children:[{label:"CMA Kuwait Licensed",sub:"License No. XXX"},{label:"CBK Regulated",sub:"Where Applicable"},{label:"Shari'a Compliant",sub:"Shari'a Supervisory Board"},{label:"Ministry of Commerce",sub:"Commercial License"}].map(e=>c.jsxs("div",{className:"flex items-center gap-2 border border-white/15 rounded px-3 py-2",children:[c.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-gold flex-shrink-0"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-semibold text-white/80 leading-none",children:e.label}),c.jsx("p",{className:"text-[11px] text-white/45 mt-0.5",children:e.sub})]})]},e.label))}),c.jsxs("div",{className:"text-right",children:[c.jsxs("p",{className:"text-xs text-white/40",children:["© ",new Date().getFullYear()," Almanza Investment Company KSCC. All rights reserved."]}),c.jsxs("p",{className:"text-xs text-white/30 mt-1 font-arabic",children:["© ",new Date().getFullYear()," شركة المانزا للاستثمار ش.م.ك. جميع الحقوق محفوظة."]})]})]})]})]}),QC="/assets/hero-bg-DMHTTH3t.jpg",GC=()=>c.jsxs("section",{className:"relative w-full overflow-hidden",style:{minHeight:"360px"},children:[c.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${QC})`}}),c.jsx("div",{className:"absolute inset-0 bg-navy opacity-88"}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[3px] bg-gradient-to-r from-gold via-[hsl(var(--gold-light))] to-transparent"}),c.jsxs("div",{className:"relative max-w-[1280px] mx-auto px-6 lg:px-8 py-16 lg:py-20",children:[c.jsxs("nav",{className:"flex items-center gap-2 text-xs text-white/50 mb-8 font-medium",children:[c.jsx("a",{href:"/",className:"hover:text-gold transition-colors duration-200",children:"Home"}),c.jsx("span",{children:"/"}),c.jsx("a",{href:"/about-us/",className:"hover:text-gold transition-colors duration-200",children:"About Us"}),c.jsx("span",{children:"/"}),c.jsx("span",{className:"text-white/80",children:"Organization Structure Detail"})]}),c.jsxs("div",{className:"max-w-3xl",children:[c.jsx("div",{className:"flex items-center gap-3 mb-4",children:c.jsx("div",{className:"gold-divider",style:{margin:0}})}),c.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-white mb-2 leading-tight tracking-tight",children:"Organization Structure Detail"}),c.jsx("p",{className:"font-arabic text-2xl lg:text-3xl font-bold text-gold/80 mb-6 leading-snug",children:"تفاصيل الهيكل التنظيمي"}),c.jsx("p",{className:"text-base text-white/65 leading-relaxed max-w-2xl",children:"A formal governance reference document detailing divisional mandates, reporting lines, regulatory oversight, and control functions of Almanza Investment Company KSCC."})]}),c.jsx("div",{className:"mt-8 border-t border-white/15 pt-6 max-w-3xl",children:c.jsxs("p",{className:"text-[13px] text-white/55 leading-relaxed",children:["Almanza Investment Company KSCC is licensed by the"," ",c.jsx("strong",{className:"text-white/75",children:"Capital Markets Authority (CMA) of Kuwait"})," (License No. XXX), regulated by the"," ",c.jsx("strong",{className:"text-white/75",children:"Central Bank of Kuwait (CBK)"})," where applicable, and complies with"," ",c.jsx("strong",{className:"text-white/75",children:"Shari'a principles"})," as overseen by our internal Shari'a Supervisory Board. This document is published in accordance with CMA disclosure requirements and corporate governance best practices."]})})]})]}),qC=()=>{const e=[{value:"150+",label:"Total Employees",arabic:"إجمالي الموظفين"},{value:"6",label:"Operating Divisions",arabic:"الأقسام التشغيلية"},{value:"4",label:"Governance Committees",arabic:"لجان الحوكمة"},{value:"4",label:"Regional Offices",arabic:"مكاتب إقليمية"},{value:"9",label:"Board Members",arabic:"أعضاء مجلس الإدارة"},{value:"3+",label:"Subsidiaries",arabic:"الشركات التابعة"}];return c.jsx("section",{className:"bg-surface-alt py-14",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:[c.jsxs("div",{className:"mb-10 fade-up",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("h2",{className:"section-heading",children:"Structure Overview"}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-4",children:"نظرة عامة على الهيكل"}),c.jsx("p",{className:"text-subtle max-w-3xl",children:"Almanza operates under a clear governance hierarchy anchored in the Board of Directors and executed through a structured divisional framework. The following sections detail each division, its mandate, reporting lines, and key functions. All structures comply with CMA Corporate Governance Code, CBK directives, and Shari'a supervisory requirements."})]}),c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:e.map((t,n)=>c.jsxs("div",{className:"fade-up bg-white border border-[hsl(var(--border-light))] rounded p-5 text-center",style:{transitionDelay:`${n*60}ms`},children:[c.jsx("p",{className:"text-3xl font-bold text-navy mb-1.5",children:t.value}),c.jsx("p",{className:"text-sm font-medium text-[hsl(var(--text-secondary))] leading-tight",children:t.label}),c.jsx("p",{className:"font-arabic text-xs text-[hsl(var(--text-secondary))]/70 mt-1",children:t.arabic})]},t.label))})]})})},XC=()=>{const e=[{name:"Audit Committee",members:"3 members",mandate:"Oversees financial reporting integrity, internal control systems, and the independence of external auditors. Reviews annual financial statements and recommends their approval to the Board. Ensures compliance with International Financial Reporting Standards (IFRS)."},{name:"Risk Committee",members:"4 members",mandate:"Reviews and approves the enterprise-wide risk management framework. Monitors capital adequacy, liquidity risk, market risk, and credit risk. Oversees compliance with CMA and CBK risk-related directives."},{name:"Shari'a Supervisory Committee",members:"3 Shari'a scholars",mandate:"Ensures all investment activities, products, and financial instruments comply with Islamic jurisprudence (Fiqh al-Mu'amalat). Issues annual Shari'a compliance certificates and reviews new product structures before approval."},{name:"Governance & Nomination Committee",members:"3 members",mandate:"Oversees board composition, director independence assessments, and board performance evaluation. Maintains compliance with the CMA Corporate Governance Code. Manages director nominations and succession planning at the Board level."}];return c.jsx("section",{className:"bg-white py-14",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:[c.jsxs("div",{className:"mb-8 fade-up",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("h2",{className:"section-heading",children:"Board-Level Governance"}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-4",children:"حوكمة مجلس الإدارة"})]}),c.jsxs("div",{className:"fade-up mb-10",children:[c.jsxs("div",{className:"border-l-4 border-gold pl-5 mb-6",children:[c.jsx("h3",{className:"text-xl font-bold text-navy mb-1",children:"Board of Directors"}),c.jsx("p",{className:"font-arabic text-base text-[hsl(var(--text-secondary))]",children:"مجلس الإدارة"})]}),c.jsxs("div",{className:"grid lg:grid-cols-3 gap-6",children:[c.jsxs("div",{className:"lg:col-span-2",children:[c.jsxs("p",{className:"body-text mb-4",children:["The Board of Directors comprises ",c.jsx("strong",{children:"9 members"}),", elected by the General Assembly for a renewable three-year term in accordance with the Company's Articles of Association and the CMA Corporate Governance Code. The Board is chaired by the Chairman, who is a non-executive director."]}),c.jsx("p",{className:"body-text mb-4",children:"The Board bears ultimate responsibility for setting corporate strategy, approving annual budgets, overseeing risk management frameworks, and ensuring the Company's compliance with all applicable regulations including CMA directives, CBK requirements, and the Ministry of Commerce corporate governance guidelines."}),c.jsxs("p",{className:"body-text",children:["A minimum of one-third of Board members are independent directors as defined under the CMA Corporate Governance Code. The Board convenes a minimum of ",c.jsx("strong",{children:"four ordinary meetings"})," per fiscal year, with extraordinary sessions convened as required by material corporate events or regulatory obligations."]})]}),c.jsx("div",{className:"space-y-3",children:[{label:"Total Members",value:"9"},{label:"Independent Directors",value:"3 minimum"},{label:"Board Term",value:"3 years (renewable)"},{label:"Min. Annual Meetings",value:"4"},{label:"Chairman Type",value:"Non-Executive"},{label:"Regulatory Framework",value:"CMA Code 2015"}].map(t=>c.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-[hsl(var(--border-light))] text-sm",children:[c.jsx("span",{className:"text-[hsl(var(--text-secondary))] font-medium",children:t.label}),c.jsx("span",{className:"font-semibold text-navy",children:t.value})]},t.label))})]})]}),c.jsxs("div",{className:"fade-up",children:[c.jsxs("div",{className:"border-l-4 border-gold pl-5 mb-6",children:[c.jsx("h3",{className:"text-xl font-bold text-navy mb-1",children:"Board Committees"}),c.jsx("p",{className:"font-arabic text-base text-[hsl(var(--text-secondary))]",children:"لجان مجلس الإدارة"})]}),c.jsx("div",{className:"grid md:grid-cols-2 gap-5",children:e.map(t=>c.jsxs("div",{className:"bg-surface-alt border border-[hsl(var(--border-light))] rounded p-5",children:[c.jsxs("div",{className:"flex items-start justify-between gap-3 mb-3",children:[c.jsx("h4",{className:"text-base font-bold text-navy leading-tight",children:t.name}),c.jsx("span",{className:"flex-shrink-0 text-xs font-semibold text-gold bg-gold/10 border border-gold/25 px-2 py-1 rounded",children:t.members})]}),c.jsx("p",{className:"text-sm text-[hsl(var(--text-secondary))] leading-relaxed",children:t.mandate})]},t.name))})]})]})})},YC=()=>{const e=[{title:"Chief Executive Officer (CEO)",arabic:"الرئيس التنفيذي",reports:"Reports to the Board of Directors",mandate:"Overall corporate strategy formulation and execution. Serves as primary interface with the Board of Directors, regulators, and institutional stakeholders. Accountable for all operational, financial, and governance outcomes of the Company and its subsidiaries."},{title:"Chief Investment Officer (CIO)",arabic:"مدير الاستثمار",reports:"Reports to CEO",mandate:"Leads the Investment Management Division. Responsible for asset allocation strategy, portfolio construction, manager selection, and investment performance across public market mandates."},{title:"Chief Financial Officer (CFO)",arabic:"المدير المالي",reports:"Reports to CEO",mandate:"Oversees financial reporting, treasury management, budget planning, investor reporting, and compliance with IFRS. Serves as primary liaison with external auditors and the Audit Committee."},{title:"Chief Operating Officer (COO)",arabic:"مدير العمليات",reports:"Reports to CEO",mandate:"Oversees day-to-day operations, technology infrastructure, human capital, and administrative functions. Responsible for operational risk management and business continuity planning."},{title:"Head of Private Equity & Venture Capital",arabic:"رئيس الأسهم الخاصة ورأس المال الجريء",reports:"Reports to CEO",mandate:"Manages direct investment activities, portfolio company oversight, and exit strategies across the Private Equity and Venture Capital Division."},{title:"Head of Real Estate",arabic:"رئيس قسم العقارات",reports:"Reports to CEO",mandate:"Leads the Real Estate Division, overseeing commercial and residential development, acquisitions, asset management, and real estate fund activities across Kuwait and the GCC region."},{title:"Head of Shari'a Compliance",arabic:"رئيس الالتزام الشرعي",reports:"Reports to CEO & Shari'a Supervisory Committee",mandate:"Ensures all products, transactions, and operational activities comply with Islamic jurisprudence. Coordinates with the Shari'a Supervisory Committee and manages internal Shari'a review processes."},{title:"Chief Risk Officer (CRO)",arabic:"مدير المخاطر",reports:"Reports to CEO & Risk Committee",mandate:"Leads enterprise risk management, compliance monitoring, and regulatory reporting. Maintains risk frameworks covering market, credit, liquidity, operational, and regulatory risk categories."}];return c.jsx("section",{className:"bg-surface-alt py-14",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:[c.jsxs("div",{className:"mb-8 fade-up",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("h2",{className:"section-heading",children:"Executive Leadership"}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-4",children:"القيادة التنفيذية"}),c.jsx("p",{className:"text-subtle max-w-3xl",children:"The Executive Committee, chaired by the CEO, comprises the heads of all divisions. The committee convenes weekly to review performance, approve investments within delegated authorities, and set operational priorities. All executive appointments are subject to Board approval and, where applicable, CMA fit-and-proper assessment."})]}),c.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:e.map((t,n)=>c.jsxs("div",{className:"fade-up bg-white border border-[hsl(var(--border-light))] rounded p-5 flex gap-4",style:{transitionDelay:`${n*50}ms`},children:[c.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-full bg-navy/8 border border-navy/12 flex items-center justify-center",children:c.jsx("span",{className:"text-xs font-bold text-navy",children:String(n+1).padStart(2,"0")})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h4",{className:"text-sm font-bold text-navy leading-tight mb-0.5",children:t.title}),c.jsx("p",{className:"font-arabic text-xs text-[hsl(var(--text-secondary))] mb-2",children:t.arabic}),c.jsxs("p",{className:"text-xs font-semibold text-gold mb-2 flex items-center gap-1",children:[c.jsx("span",{className:"w-1 h-1 rounded-full bg-gold inline-block"}),t.reports]}),c.jsx("p",{className:"text-sm text-[hsl(var(--text-secondary))] leading-relaxed",children:t.mandate})]})]},t.title))})]})})},ZC=({index:e,title:t,titleArabic:n,head:r,reportsTo:o,mandate:i,keyFunctions:s,subUnits:a,background:l="white"})=>{const u=l==="white"?"bg-white":"bg-surface-alt";return c.jsx("section",{className:`${u} py-14`,children:c.jsx("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:c.jsxs("div",{className:"fade-up",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"gold-divider",style:{margin:0}}),c.jsxs("span",{className:"text-xs font-bold text-gold uppercase tracking-widest",children:["Division ",e]})]}),c.jsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[c.jsxs("div",{className:"lg:col-span-1",children:[c.jsx("h2",{className:"text-2xl font-bold text-navy mb-1 leading-tight",children:t}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-5",children:n}),c.jsxs("div",{className:"space-y-3 mb-6",children:[c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("span",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] uppercase tracking-wider",children:"Division Head"}),c.jsx("span",{className:"text-sm font-semibold text-navy",children:r})]}),c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("span",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] uppercase tracking-wider",children:"Reporting Line"}),c.jsx("span",{className:"text-sm font-semibold text-gold",children:o})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] uppercase tracking-wider mb-2",children:"Sub-Units"}),c.jsx("div",{className:"space-y-1.5",children:a.map(d=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-gold flex-shrink-0"}),c.jsx("span",{className:"text-sm text-[hsl(var(--text-secondary))]",children:d})]},d))})]})]}),c.jsxs("div",{className:"lg:col-span-2",children:[c.jsxs("div",{className:"border-l-2 border-[hsl(var(--border-light))] pl-6 mb-6",children:[c.jsx("h3",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] uppercase tracking-wider mb-2",children:"Mandate"}),c.jsx("p",{className:"body-text",children:i})]}),c.jsxs("div",{className:"border-l-2 border-gold pl-6",children:[c.jsx("h3",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] uppercase tracking-wider mb-3",children:"Key Functions"}),c.jsx("div",{className:"grid sm:grid-cols-2 gap-x-6 gap-y-2",children:s.map(d=>c.jsxs("div",{className:"flex items-start gap-2.5",children:[c.jsx("div",{className:"w-1 h-1 rounded-full bg-navy/40 flex-shrink-0 mt-2"}),c.jsx("span",{className:"text-sm text-[hsl(var(--text-secondary))] leading-relaxed",children:d})]},d))})]})]})]})]})})})},JC=()=>{const e=[{name:"Almanza Real Estate Company",ownership:"100% owned",description:"Develops, manages, and invests in commercial and residential real estate assets across Kuwait and the Kingdom of Saudi Arabia. Portfolio includes office towers, mixed-use developments, and logistics facilities.",jurisdiction:"Kuwait / KSA"},{name:"Almanza Ventures KSCC",ownership:"95% owned",description:"A Shari'a-compliant venture capital fund focused on early-stage and growth-stage technology companies in the GCC and MENA region. Manages a portfolio of technology, fintech, and digital infrastructure investments.",jurisdiction:"Kuwait"},{name:"Almanza Industrial Investments",ownership:"80% owned",description:"Manages strategic manufacturing and industrial partnerships including petrochemical services, industrial logistics, and supply chain investments. Focused on Kuwait's National Development Plan alignment.",jurisdiction:"Kuwait"}],t=[{city:"Kuwait City",type:"Headquarters",address:"Almanza Tower, Al-Sharq, Kuwait City, State of Kuwait",coverage:"All divisions and operations"},{city:"Riyadh",type:"Regional Office",address:"King Fahad Road, Olaya District, Riyadh, Kingdom of Saudi Arabia",coverage:"KSA investment coverage and regulatory affairs"},{city:"Dubai (DIFC)",type:"Regional Office",address:"Gate Village, DIFC, Dubai, United Arab Emirates",coverage:"UAE investment activities, DIFC-regulated operations"},{city:"Doha",type:"Regional Office",address:"West Bay Financial District, Doha, State of Qatar",coverage:"Qatar investment coverage and client relations"}];return c.jsx("section",{className:"bg-white py-14",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:[c.jsxs("div",{className:"mb-8 fade-up",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("h2",{className:"section-heading",children:"Subsidiaries & Regional Offices"}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-4",children:"الشركات التابعة والمكاتب الإقليمية"})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-10",children:[c.jsxs("div",{className:"fade-up",children:[c.jsxs("h3",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] uppercase tracking-wider mb-4 flex items-center gap-2",children:[c.jsx("div",{className:"w-3 h-0.5 bg-gold"}),"Subsidiaries"]}),c.jsx("div",{className:"space-y-4",children:e.map(n=>c.jsxs("div",{className:"border border-[hsl(var(--border-light))] rounded p-5",children:[c.jsxs("div",{className:"flex items-start justify-between gap-3 mb-2",children:[c.jsx("h4",{className:"text-sm font-bold text-navy",children:n.name}),c.jsx("span",{className:"flex-shrink-0 text-xs font-semibold text-gold bg-gold/10 border border-gold/25 px-2 py-0.5 rounded",children:n.ownership})]}),c.jsx("p",{className:"text-sm text-[hsl(var(--text-secondary))] leading-relaxed mb-2",children:n.description}),c.jsxs("p",{className:"text-xs text-[hsl(var(--text-secondary))]/60 font-medium",children:["Jurisdiction: ",n.jurisdiction]})]},n.name))})]}),c.jsxs("div",{className:"fade-up",children:[c.jsxs("h3",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] uppercase tracking-wider mb-4 flex items-center gap-2",children:[c.jsx("div",{className:"w-3 h-0.5 bg-gold"}),"Regional Offices"]}),c.jsx("div",{className:"space-y-4",children:t.map(n=>c.jsxs("div",{className:"border border-[hsl(var(--border-light))] rounded p-5 flex gap-4",children:[c.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded bg-navy/6 flex items-center justify-center",children:c.jsx("span",{className:"text-xs font-bold text-navy",children:n.city.slice(0,2).toUpperCase()})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("h4",{className:"text-sm font-bold text-navy",children:n.city}),c.jsx("span",{className:"text-xs font-medium text-white bg-navy px-2 py-0.5 rounded",children:n.type})]}),c.jsx("p",{className:"text-sm text-[hsl(var(--text-secondary))] mb-1",children:n.address}),c.jsx("p",{className:"text-xs text-[hsl(var(--text-secondary))]/60",children:n.coverage})]})]},n.city))})]})]})]})})},eS=()=>{const e=[{regulator:"Capital Markets Authority (CMA) Kuwait",regulatorArabic:"هيئة أسواق المال",role:"Primary securities regulator. Oversees investment company licensing, disclosure obligations, public offering approvals, and corporate governance compliance.",evidence:"CMA License No. XXX; Annual governance report; Quarterly financial disclosures; Related-party transaction filings.",scope:"All investment activities"},{regulator:"Central Bank of Kuwait (CBK)",regulatorArabic:"بنك الكويت المركزي",role:"Regulates banking and financial system stability where Al Amal's activities intersect with banking-licensed functions. Applicable to treasury, custody, and certain fund structures.",evidence:"CBK approvals for applicable activities; AML/CFT compliance reports; Annual KYC/AML certification.",scope:"Applicable treasury & custody activities"},{regulator:"Ministry of Commerce & Industry",regulatorArabic:"وزارة التجارة والصناعة",role:"Regulates corporate governance under the Kuwait Companies Law. Oversees commercial registration, general assembly procedures, and shareholding company compliance.",evidence:"Commercial license; Annual general assembly filings; Director disclosure forms; Corporate governance annual report.",scope:"Corporate governance & registration"},{regulator:"Shari'a Supervisory Board",regulatorArabic:"هيئة الرقابة الشرعية",role:"Internal supervisory body comprising three qualified Shari'a scholars. Reviews and certifies that all products, transactions, and operations comply with Islamic jurisprudence (Fiqh al-Mu'amalat).",evidence:"Annual Shari'a compliance audit report; Product approval fatwas; Quarterly Shari'a review minutes.",scope:"All products and transactions"},{regulator:"Kuwait Stock Exchange (Boursa Kuwait)",regulatorArabic:"بورصة الكويت",role:"Listing authority for publicly listed instruments. Requires continuous disclosure, material event announcements, and compliance with listing rules where applicable.",evidence:"Continuous disclosure filings; Price-sensitive announcements; Annual report submissions.",scope:"Listed securities (where applicable)"}];return c.jsx("section",{className:"bg-surface-alt py-14",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:[c.jsxs("div",{className:"mb-8 fade-up",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("h2",{className:"section-heading",children:"Regulatory Oversight Matrix"}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-4",children:"مصفوفة الرقابة التنظيمية"}),c.jsx("p",{className:"text-subtle max-w-3xl",children:"Almanza Investment Company KSCC operates within a multi-regulator compliance framework. The matrix below details each regulatory body, its mandate over Al Amal's activities, and the compliance evidence maintained."})]}),c.jsx("div",{className:"fade-up overflow-x-auto",children:c.jsxs("table",{className:"w-full border-collapse text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-navy text-white",children:[c.jsx("th",{className:"text-left px-4 py-3 font-semibold text-xs uppercase tracking-wider whitespace-nowrap",children:"Regulatory Body"}),c.jsx("th",{className:"text-left px-4 py-3 font-semibold text-xs uppercase tracking-wider",children:"Role & Mandate"}),c.jsx("th",{className:"text-left px-4 py-3 font-semibold text-xs uppercase tracking-wider",children:"Compliance Evidence"}),c.jsx("th",{className:"text-left px-4 py-3 font-semibold text-xs uppercase tracking-wider whitespace-nowrap",children:"Scope"})]})}),c.jsx("tbody",{children:e.map((t,n)=>c.jsxs("tr",{className:`border-b border-[hsl(var(--border-light))] ${n%2===0?"bg-white":"bg-surface-alt"} hover:bg-gold/5 transition-colors duration-150`,children:[c.jsxs("td",{className:"px-4 py-4 align-top",children:[c.jsx("p",{className:"font-bold text-navy leading-tight mb-1",children:t.regulator}),c.jsx("p",{className:"font-arabic text-xs text-[hsl(var(--text-secondary))]",children:t.regulatorArabic})]}),c.jsx("td",{className:"px-4 py-4 align-top text-[hsl(var(--text-secondary))] leading-relaxed max-w-xs",children:t.role}),c.jsx("td",{className:"px-4 py-4 align-top text-[hsl(var(--text-secondary))] leading-relaxed max-w-xs",children:t.evidence}),c.jsx("td",{className:"px-4 py-4 align-top",children:c.jsx("span",{className:"inline-block text-xs font-semibold text-gold bg-gold/10 border border-gold/25 px-2 py-1 rounded",children:t.scope})})]},t.regulator))})]})}),c.jsx("div",{className:"fade-up mt-5 border border-[hsl(var(--border-light))] rounded p-4 bg-white",children:c.jsxs("p",{className:"text-xs text-[hsl(var(--text-secondary))] leading-relaxed",children:[c.jsx("strong",{className:"text-navy",children:"Disclaimer:"})," This regulatory matrix is provided for information purposes only and reflects the regulatory framework as of the date of publication. Almanza Investment Company KSCC maintains a dedicated Compliance department responsible for monitoring changes in applicable laws and regulations and ensuring ongoing adherence. For formal regulatory status, refer to the official CMA and CBK public registers."]})})]})})},tS=()=>{const e=[{title:"Financial & Operational Audit",description:"Reviews the accuracy and completeness of financial records, evaluates the effectiveness of operational controls, and assesses compliance with internal policies and standard operating procedures across all divisions."},{title:"Regulatory Compliance Review",description:"Monitors adherence to CMA regulations, CBK directives, AML/CFT requirements, and the Kuwait Companies Law. Produces quarterly compliance status reports for the Audit Committee."},{title:"IT & Information Security Audit",description:"Evaluates technology infrastructure controls, cybersecurity protocols, data protection practices, and business continuity planning in accordance with recognised IT governance frameworks."},{title:"Investment Process Audit",description:"Independently reviews investment decision processes, mandate compliance, valuation methodologies, and performance measurement practices within each investment division."},{title:"Shari'a Compliance Review",description:"Coordinates with the Shari'a Supervisory Committee to verify that approved Shari'a frameworks are correctly implemented at the transaction and portfolio level."},{title:"Follow-up & Remediation Tracking",description:"Monitors the timely implementation of corrective actions identified in prior audit cycles. Reports remediation status to the Audit Committee at each quarterly meeting."}];return c.jsx("section",{className:"bg-white py-14",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:[c.jsxs("div",{className:"mb-8 fade-up",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("h2",{className:"section-heading",children:"Internal Audit & Control Functions"}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-4",children:"وظائف التدقيق الداخلي والرقابة"})]}),c.jsxs("div",{className:"grid lg:grid-cols-3 gap-8 fade-up",children:[c.jsxs("div",{className:"lg:col-span-1",children:[c.jsxs("p",{className:"body-text mb-5",children:["The Internal Audit department operates as an independent, objective assurance and consulting function. It reports directly to the ",c.jsx("strong",{children:"Audit Committee of the Board of Directors"}),", ensuring full independence from executive management."]}),c.jsx("p",{className:"body-text mb-6",children:"The department conducts risk-based audits across all divisions, subsidiaries, and regional offices on an annual cycle approved by the Audit Committee. Special audits may be commissioned at the request of the Board or Audit Committee."}),c.jsx("div",{className:"border border-[hsl(var(--border-light))] rounded p-4 space-y-3",children:[{label:"Reports To",value:"Audit Committee (Board)"},{label:"Audit Cycle",value:"Annual (risk-based)"},{label:"Head Qualification",value:"CPA / CIA certified"},{label:"Experience",value:"15+ years"},{label:"Independence",value:"Full – no exec. reporting line"},{label:"External Coordinator",value:"Big-4 external auditors"}].map(t=>c.jsxs("div",{className:"flex justify-between items-start gap-2 text-sm border-b border-[hsl(var(--border-light))] pb-2 last:border-0 last:pb-0",children:[c.jsx("span",{className:"text-[hsl(var(--text-secondary))] font-medium",children:t.label}),c.jsx("span",{className:"font-semibold text-navy text-right",children:t.value})]},t.label))})]}),c.jsxs("div",{className:"lg:col-span-2",children:[c.jsx("h3",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] uppercase tracking-wider mb-4",children:"Core Audit Functions"}),c.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:e.map(t=>c.jsxs("div",{className:"border border-[hsl(var(--border-light))] rounded p-4 bg-surface-alt",children:[c.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[c.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-gold flex-shrink-0 mt-1.5"}),c.jsx("h4",{className:"text-sm font-bold text-navy leading-tight",children:t.title})]}),c.jsx("p",{className:"text-sm text-[hsl(var(--text-secondary))] leading-relaxed pl-3.5",children:t.description})]},t.title))})]})]})]})})},nS=()=>{const e=[{title:"Talent Acquisition",description:"Structured recruitment process aligned with Kuwaitisation (nationalisation) targets set by the Ministry of Labour. Mandatory competency-based interviews and background screening for all hires."},{title:"Performance Management",description:"Annual performance appraisal cycle linked to divisional KPIs and corporate strategic objectives. Mid-year reviews conducted for senior and mid-management levels."},{title:"Learning & Development",description:"Mandatory CMA-accredited training for investment professionals. External certification support (CFA, FRM, CAIA, CIA) for eligible staff. Annual leadership development programme."},{title:"Compensation & Benefits",description:"Benchmarked annually against GCC investment firm peers. Includes base salary, performance bonus, ESOP for senior leadership, and comprehensive health and retirement benefits."},{title:"Kuwaitisation Compliance",description:"Dedicated Kuwaitisation programme with quarterly reporting to the Ministry of Labour. Mentorship and fast-track schemes for Kuwaiti national talent."},{title:"Employee Relations",description:"Formal grievance and disciplinary procedures in compliance with Kuwait Labour Law (Law No. 6 of 2010). Annual employee engagement survey reported to the COO and Board."}];return c.jsx("section",{className:"bg-surface-alt py-14",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:[c.jsxs("div",{className:"mb-8 fade-up",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("h2",{className:"section-heading",children:"Human Capital & Administration"}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-4",children:"رأس المال البشري والإدارة"})]}),c.jsxs("div",{className:"grid lg:grid-cols-3 gap-8 fade-up",children:[c.jsxs("div",{children:[c.jsxs("p",{className:"body-text mb-4",children:["The Human Capital department is responsible for the full employee lifecycle — from talent acquisition through performance management, learning and development, and employee relations. The department ",c.jsx("strong",{children:"reports to the Chief Operating Officer (COO)"}),"."]}),c.jsx("p",{className:"body-text mb-4",children:"As a Kuwaiti Shareholding Company, Almanza adheres to Kuwait Labour Law (Law No. 6 of 2010) and Ministerial Resolution requirements governing Kuwaitisation, working hours, and employee rights."}),c.jsx("div",{className:"bg-white border border-[hsl(var(--border-light))] rounded p-4 space-y-2",children:[{label:"Reports To",value:"Chief Operating Officer"},{label:"Workforce",value:"150+ employees"},{label:"Kuwaitisation Target",value:"Per Ministry requirements"},{label:"Legal Framework",value:"Kuwait Labour Law No. 6/2010"},{label:"Head Qualification",value:"20+ years HR experience"}].map(t=>c.jsxs("div",{className:"flex justify-between text-sm border-b border-[hsl(var(--border-light))] pb-2 last:border-0 last:pb-0",children:[c.jsx("span",{className:"text-[hsl(var(--text-secondary))]",children:t.label}),c.jsx("span",{className:"font-semibold text-navy text-right",children:t.value})]},t.label))})]}),c.jsxs("div",{className:"lg:col-span-2",children:[c.jsx("h3",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] uppercase tracking-wider mb-4",children:"Human Capital Programmes"}),c.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:e.map(t=>c.jsxs("div",{className:"bg-white border border-[hsl(var(--border-light))] rounded p-4",children:[c.jsx("h4",{className:"text-sm font-bold text-navy mb-2",children:t.title}),c.jsx("p",{className:"text-sm text-[hsl(var(--text-secondary))] leading-relaxed",children:t.description})]},t.title))})]})]})]})})},rS=()=>{const e=[{title:"Full Organization Structure – Text (English)",description:"Complete hierarchical breakdown of all divisions, departments, and reporting lines.",format:"PDF",size:"0.8 MB",lang:"EN"},{title:"الهيكل التنظيمي الكامل – نص (العربية)",description:"الهيكل الهرمي الكامل لجميع الأقسام والإدارات وخطوط الإبلاغ.",format:"PDF",size:"0.9 MB",lang:"AR",arabic:!0},{title:"Corporate Governance Manual",description:"Comprehensive governance policies, Board charter, committee terms of reference, and conflict of interest guidelines.",format:"PDF",size:"2.5 MB",lang:"EN"},{title:"Annual Shari'a Compliance Report",description:"Annual certification from the Shari'a Supervisory Board confirming compliance of all activities with Islamic jurisprudence.",format:"PDF",size:"1.2 MB",lang:"EN/AR"},{title:"CMA Governance Disclosure – Latest",description:"Most recent annual governance report filed with the Capital Markets Authority as required under the CMA Corporate Governance Code.",format:"PDF",size:"3.1 MB",lang:"EN/AR"},{title:"Board Committee Charters",description:"Terms of reference for the Audit, Risk, Shari'a, and Governance & Nomination committees.",format:"PDF",size:"0.6 MB",lang:"EN"}],t=n=>{console.log("Download requested:",n),alert(`Download initiated for: ${n} (Document downloads will be available in the production environment.)`)};return c.jsx("section",{className:"bg-white py-14",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:[c.jsxs("div",{className:"mb-8 fade-up",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("h2",{className:"section-heading",children:"Downloadable Resources"}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-4",children:"الموارد القابلة للتنزيل"}),c.jsx("p",{className:"text-subtle max-w-2xl",children:"Governance documents are published in accordance with CMA disclosure requirements. All documents are available in English and Arabic unless otherwise noted."})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4 fade-up",children:e.map(n=>c.jsxs("div",{className:"border border-[hsl(var(--border-light))] rounded p-5 hover:border-gold hover:-translate-y-0.5 transition-all duration-200 group cursor-pointer bg-white",onClick:()=>t(n.title),children:[c.jsxs("div",{className:"flex items-start justify-between gap-3 mb-3",children:[c.jsx("div",{className:"w-10 h-10 rounded bg-gold/10 border border-gold/25 flex items-center justify-center flex-shrink-0 group-hover:bg-gold/20 transition-colors duration-200",children:c.jsx(u0,{className:"w-4 h-4 text-gold"})}),c.jsxs("div",{className:"flex gap-1.5",children:[c.jsx("span",{className:"text-xs font-bold text-[hsl(var(--text-secondary))] bg-[hsl(var(--surface-alt))] px-2 py-0.5 rounded border border-[hsl(var(--border-light))]",children:n.format}),c.jsx("span",{className:"text-xs font-bold text-navy bg-[hsl(var(--surface-alt))] px-2 py-0.5 rounded border border-[hsl(var(--border-light))]",children:n.lang})]})]}),c.jsx("h4",{className:`text-sm font-bold text-navy mb-2 leading-tight ${n.arabic?"font-arabic":""}`,children:n.title}),c.jsx("p",{className:`text-sm text-[hsl(var(--text-secondary))] leading-relaxed mb-3 ${n.arabic?"font-arabic":""}`,children:n.description}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"text-xs text-[hsl(var(--text-secondary))]/60",children:n.size}),c.jsx("span",{className:"text-xs font-semibold text-gold group-hover:underline",children:"Download →"})]})]},n.title))})]})})},oS=()=>{const e=[{title:"Board of Directors",titleArabic:"مجلس الإدارة",description:"Profiles and responsibilities of Al Amal's Board of Directors, including committee memberships, independence status, and governance roles.",link:"/about-us/board-of-directors/",cta:"View Board of Directors →"},{title:"Executive Management",titleArabic:"الإدارة التنفيذية",description:"Detailed profiles of the Executive Committee, including qualifications, experience, and divisional leadership responsibilities.",link:"/about-us/executive-management/",cta:"View Executive Management →"},{title:"Governance Policies",titleArabic:"سياسات الحوكمة",description:"Corporate governance framework, board charter, anti-corruption policy, conflict of interest guidelines, and CMA compliance disclosures.",link:"/about-us/governance/",cta:"View Governance Policies →"},{title:"Investor Relations",titleArabic:"علاقات المستثمرين",description:"Financial reports, earnings releases, general assembly notices, and Investor Relations contact information.",link:"/investor-relations/",cta:"View Investor Relations →"}];return c.jsx("section",{className:"bg-surface-alt py-14",children:c.jsxs("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:[c.jsxs("div",{className:"mb-8 fade-up",children:[c.jsx("div",{className:"gold-divider"}),c.jsx("h2",{className:"section-heading",children:"Related Content"}),c.jsx("p",{className:"font-arabic text-lg text-[hsl(var(--text-secondary))] mb-1",children:"المحتوى ذو الصلة"})]}),c.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4 fade-up",children:e.map(t=>c.jsxs("a",{href:t.link,className:"bg-white border border-[hsl(var(--border-light))] rounded p-5 hover:border-gold hover:shadow-sm transition-all duration-200 group flex flex-col",children:[c.jsx("h4",{className:"text-base font-bold text-navy mb-1 group-hover:text-[hsl(var(--accent-blue))] transition-colors duration-200",children:t.title}),c.jsx("p",{className:"font-arabic text-sm text-[hsl(var(--text-secondary))] mb-3",children:t.titleArabic}),c.jsx("p",{className:"text-sm text-[hsl(var(--text-secondary))] leading-relaxed flex-grow mb-4",children:t.description}),c.jsx("span",{className:"text-sm font-semibold text-gold group-hover:underline mt-auto",children:t.cta})]},t.title))})]})})},iS=()=>c.jsx("section",{className:"bg-navy py-16",children:c.jsx("div",{className:"max-w-[1280px] mx-auto px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-2xl mx-auto text-center fade-up",children:[c.jsx("div",{className:"flex justify-center mb-5",children:c.jsx("div",{className:"gold-divider",style:{margin:"0 auto"}})}),c.jsx("h2",{className:"text-3xl font-bold text-white mb-3 leading-tight",children:"Questions About Our Organizational Structure?"}),c.jsx("p",{className:"font-arabic text-lg text-white/65 mb-2",children:"هل لديك استفسارات حول هيكلنا التنظيمي؟"}),c.jsx("p",{className:"text-base text-white/65 leading-relaxed mb-8 mt-4",children:"Direct formal inquiries to the Corporate Secretary or Investor Relations team. We respond to regulatory, governance, and institutional investor inquiries within two business days."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[c.jsx("a",{href:"/contact/corporate-secretary",className:"inline-flex items-center justify-center gap-2 px-7 py-3.5 bg-gold text-navy font-bold text-sm rounded hover:bg-[hsl(var(--gold-light))] transition-colors duration-200 min-h-[44px]",children:"Contact Corporate Secretary →"}),c.jsx("a",{href:"/investor-relations/",className:"inline-flex items-center justify-center gap-2 px-7 py-3.5 bg-transparent text-white font-semibold text-sm rounded border border-white/30 hover:border-gold hover:text-gold transition-all duration-200 min-h-[44px]",children:"Investor Relations"})]}),c.jsx("div",{className:"mt-10 border-t border-white/10 pt-8 grid sm:grid-cols-3 gap-6 text-left",children:[{label:"Corporate Secretary",detail:"corporate.secretary@almanza.com.kw",note:"Governance & Board inquiries"},{label:"Investor Relations",detail:"ir@almanza.com.kw",note:"Financial & shareholder inquiries"},{label:"General Enquiries",detail:"+965 XXXX XXXX",note:"Mon–Thu, 8:00–16:00 AST"}].map(e=>c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-bold text-gold uppercase tracking-wider mb-1",children:e.label}),c.jsx("p",{className:"text-sm font-semibold text-white break-all",children:e.detail}),c.jsx("p",{className:"text-xs text-white/45 mt-0.5",children:e.note})]},e.label))})]})})}),sS=[{index:1,title:"Investment Management Division",titleArabic:"قسم إدارة الاستثمارات",head:"Chief Investment Officer (CIO)",reportsTo:"Reports to CEO",mandate:"Manage public market investments across equities, fixed income, sukuk, and multi-asset portfolios for both proprietary and client mandates. The division is responsible for delivering risk-adjusted returns in compliance with approved investment policies, CMA regulations, and Shari'a guidelines.",keyFunctions:["Strategic and tactical asset allocation","Manager selection and monitoring","Portfolio construction and optimisation","Investment risk management and limits monitoring","Performance measurement and attribution","Client reporting and mandate compliance","Research and investment strategy","ESG and Shari'a screening"],subUnits:["Equities Team","Fixed Income & Sukuk Team","Multi-Asset Solutions","Research & Strategy Unit"],background:"alt"},{index:2,title:"Private Equity & Venture Capital Division",titleArabic:"قسم الأسهم الخاصة ورأس المال الجريء",head:"Head of Private Equity & Venture Capital",reportsTo:"Reports to CEO",mandate:"Originate, evaluate, and manage direct investments in private companies across growth, buyout, and venture stages. The division manages Al Amal's proprietary PE/VC portfolio and the Almanza Ventures KSCC fund structure, with a focus on GCC and MENA-region opportunities compliant with Shari'a principles.",keyFunctions:["Deal origination and pipeline management","Due diligence and investment evaluation","Portfolio company board representation","Value creation and operational support","Exit strategy execution (IPO, trade sale, secondary)","Fund structuring and LP relations","Valuation and quarterly NAV reporting","Co-investment management"],subUnits:["PE Investments Team","Venture Capital Team","Portfolio Management Unit","Fund Operations & LP Relations"],background:"white"},{index:3,title:"Real Estate Division",titleArabic:"قسم العقارات",head:"Head of Real Estate",reportsTo:"Reports to CEO",mandate:"Lead Al Amal's real estate investment, development, and asset management activities. The division oversees commercial, residential, and mixed-use projects in Kuwait and the GCC, managing the Almanza Real Estate Company subsidiary and direct property investments held on balance sheet.",keyFunctions:["Property acquisition and disposal","Development project management","Asset and property management","Real estate fund management","Lease administration and tenant relations","Market research and feasibility studies","RICS-compliant valuation oversight","Regulatory approvals and permits coordination"],subUnits:["Development & Projects Team","Asset Management Team","Acquisition & Disposals Unit","Research & Feasibility Unit"],background:"alt"},{index:4,title:"Shari'a Compliance & Governance Division",titleArabic:"قسم الامتثال الشرعي والحوكمة",head:"Head of Shari'a Compliance",reportsTo:"Reports to CEO and Shari'a Supervisory Committee",mandate:"Ensure that all of Al Amal's products, transactions, operational activities, and investment structures comply with Islamic jurisprudence (Fiqh al-Mu'amalat). The division acts as the executive arm of the Shari'a Supervisory Committee and serves as the primary point of contact for Shari'a-related matters across all business units.",keyFunctions:["Shari'a review of new products and structures","Fatwa documentation and maintenance","Pre-trade and post-trade Shari'a screening","Annual Shari'a audit coordination","Staff Shari'a training and awareness","Purification calculations and zakat advisory","Coordination with external Shari'a advisors","Shari'a compliance reporting to the Board"],subUnits:["Shari'a Review Unit","Product Approval & Fatwa Documentation","Shari'a Audit Coordination"],background:"white"},{index:5,title:"Risk & Compliance Division",titleArabic:"قسم المخاطر والامتثال",head:"Chief Risk Officer (CRO)",reportsTo:"Reports to CEO and Risk Committee (Board)",mandate:"Establish, maintain, and monitor the enterprise-wide risk management framework. Ensure compliance with all applicable laws, regulations, and internal policies. The division provides independent risk oversight across all business units and serves as the primary regulatory interface for risk-related matters with CMA, CBK, and other authorities.",keyFunctions:["Enterprise risk framework maintenance","Market, credit, and liquidity risk monitoring","Operational risk assessment and management","Regulatory compliance monitoring (CMA, CBK, MOC)","AML/CFT programme management","Capital adequacy and stress testing","Regulatory reporting and filings","Incident management and escalation"],subUnits:["Investment Risk Team","Operational Risk Team","Compliance & Regulatory Affairs","AML/CFT Unit"],background:"alt"},{index:6,title:"Operations & Finance Division",titleArabic:"قسم العمليات والمالية",head:"Chief Financial Officer (CFO) / Chief Operating Officer (COO)",reportsTo:"Reports to CEO",mandate:"Deliver reliable financial reporting, treasury management, and operational infrastructure across all divisions. The division encompasses Finance & Accounting, Treasury, IT & Technology, and corporate Administration — ensuring the Company's day-to-day operations run efficiently and in compliance with statutory and internal requirements.",keyFunctions:["Financial reporting (IFRS-compliant)","Budget planning and financial forecasting","Treasury and liquidity management","Tax compliance and Zakat filings","Trade operations and settlement","IT systems and cybersecurity management","Business continuity and disaster recovery","Corporate administration and facilities"],subUnits:["Finance & Accounting","Treasury","IT & Technology","Trade Operations & Settlement","Corporate Administration"],background:"white"}],yf=()=>{const e=x.useRef(null);return x.useEffect(()=>{const t=new IntersectionObserver(r=>{r.forEach(o=>{o.isIntersecting&&(o.target.classList.add("visible"),t.unobserve(o.target))})},{threshold:.07,rootMargin:"0px 0px -40px 0px"});return document.querySelectorAll(".fade-up").forEach(r=>t.observe(r)),()=>t.disconnect()},[]),c.jsxs("div",{ref:e,className:"min-h-screen bg-white",children:[c.jsx(WC,{}),c.jsxs("main",{children:[c.jsx(GC,{}),c.jsx(qC,{}),c.jsx(XC,{}),c.jsx(YC,{}),sS.map(t=>c.jsx(ZC,{...t},t.index)),c.jsx(JC,{}),c.jsx(eS,{}),c.jsx(tS,{}),c.jsx(nS,{}),c.jsx(rS,{}),c.jsx(oS,{}),c.jsx(iS,{})]}),c.jsx(KC,{})]})},aS=()=>{const e=yi();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},lS=new zb,uS=()=>c.jsx(Bb,{client:lS,children:c.jsxs(ub,{children:[c.jsx(K0,{}),c.jsx(Ew,{}),c.jsx($C,{children:c.jsxs(MC,{children:[c.jsx(ss,{path:"/",element:c.jsx(yf,{})}),c.jsx(ss,{path:"/about-us/organization-structure-detail/",element:c.jsx(yf,{})}),c.jsx(ss,{path:"*",element:c.jsx(aS,{})})]})})]})});Vh(document.getElementById("root")).render(c.jsx(uS,{}));